These are chat archives for ipython/ipython

Sep 2016
How do I figure out which Python IPythonNotebook is using?
Min RK
Sep 12 2016 11:00
@p-i- in the menu: Help > About should tell you.
Thanks, that gives me Python 3.5.2 |Anaconda 2.4.1 (x86_64) but it doesn't tell me if I am using my system Python or Anaconda's Python. I started my notebook up doing ipython notebook from bash. I'm guessing it must be Anaconda's Python because I used Anaconda to install IPython.
ah which python3 tells me that my System is using /Users/pi/anaconda/bin/python3
So that explains why pip install foo has been working out for using foo in notebook.
But something strange happened yesterday, pip didn't have freetype so I had to use Anaconda to install it. And then my notebook couldn't see it. I have to manually cp anaconda/lib/libfree* /usr/local/lib in order for it to work.
Which is kind of weird, because isn't that target folder for my system Python? Not my Anaconda Python..
Min RK
Sep 12 2016 12:06
freetype is a C library, not a Python one
C libraries are looked for in /usr/local by default, but not sys.prefix unless extra environment variables are passed
Has anyone found a good workflow for IPython Notebooks? I am missing the ability to set breakpoints and single step.
Is there some commands for suspending execution at a particular code location, and dropping into REPL?
I think someone just messaged me. But I can't find it on this online client.
Leonardo Andrés Jofré Flor
Sep 12 2016 22:57
@p-i- do you need to debug an Ipython notebook?
@ljofre yes, in fact it is a .py in the same folder as the notebook. The notebook runs code in it (a neural network). Sometimes I wish to suspend execution and examine various variables. But it's really awkward!
I wonder if there is some way to open this file up in a third-party editor which is pointed at Jupyter's Python-runtime in such a way that I can set breakpoints and single step.