Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
%profile magic is deprecated but still in the documentation #10693
Comments
Carreau
added this to the
5.5
milestone
Jul 7, 2017
Ooops, yes please !
I'm unsure I understand this question. You want to find the |
jni
commented
Jul 8, 2017
|
@Carreau yes, yes I do, because ptipython doesn't seem to load it automatically. |
jni
commented
Jul 8, 2017
|
But I would like it to be programmatic, rather than hardcoding the path. |
|
Try |
jni
commented
Jul 11, 2017
|
It is indeed set in ptipython (yay!), but |
|
This may be a bit tricky, unfortunately, because our config system is designed to be used with our application framework from traitlets, which I suspect ptipython doesn't use. The config needs to be loaded while the application is starting up, and passed to the IPython objects as they are instantiated. Unfortunately, I don't have time at the moment to look into the ptipython code to see where it could be integrated. |
Carreau
added a commit
to Carreau/ipython
that referenced
this issue
Jul 20, 2017
|
|
Carreau |
206018e
|
jni commentedJul 7, 2017
If I try to display my current profile using
%profile, I get a nice deprecation warning:This is all well and good, except the only reason I tried it is because of the current docs. Should I submit a PR removing that line?
Incidentally, I came across this while trying to execute my profile within ptipython. So any suggestions for doing that are welcome!