Wie speichere ich das Ergebnis von %% Timeit Cell Magic?Python

Python-Programme
Anonymous
 Wie speichere ich das Ergebnis von %% Timeit Cell Magic?

Post by Anonymous »

Ich kann nicht herausfinden, wie ich das Ergebnis aus Cell Magic - %% Timeit speichern kann? Ich habe gelesen: < /p>

Können Sie die Ausgabe von Ipythons magischen Methoden erfassen? Im Linienmodus (

Code: Select all

%
) Dies funktioniert:

Code: Select all

In[1]: res = %timeit -o np.linalg.inv(A)
< /code>
Aber im Zellmodus (%%
) Es ist nicht :
In[2]: res = %%timeit -o
A = np.mat('1 2 3; 7 4 9; 5 6 1')
np.linalg.inv(A)
< /code>
Es wird einfach die Zelle ausgeführt, keine Magie. Ist es ein Fehler oder ich mache etwas falsch?
Ich verwende ipython 5.1.0

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • Wie lesen Sie den Wert von Excel Fusioned Cell Properties mit Python?
    by Anonymous » » in Python
    0 Replies
    15 Views
    Last post by Anonymous
  • Mehrfach Schriftart -Typ in Cell EasyTable oder Boxbar mit PDFBox Java
    by Anonymous » » in Java
    0 Replies
    10 Views
    Last post by Anonymous
  • Pixel zur Excel Cell -Konvertierung durch Xlwings
    by Anonymous » » in Python
    0 Replies
    17 Views
    Last post by Anonymous
  • Schaffung von Magic Square 3x3
    by Anonymous » » in Python
    0 Replies
    1 Views
    Last post by Anonymous
  • Soll ich Python Magic -Methoden direkt anwenden?
    by Anonymous » » in Python
    0 Replies
    1 Views
    Last post by Anonymous