These are chat archives for ipython/ipython

27th
Feb 2016
Ryan Morshead
@rmorshea
Feb 27 2016 00:49
So I've run into an issue with the Jupyter Notebook I've never encountered before involving, what I presume is sys.meta_path. I'm using antipackage to import simple python packages on the fly from GitHub, however whenever I try to import something the kernel hangs. This holds true both in the notebook and in the qtconsole. Normally I'd presume this is just an issue on my end, but I can't get debug output from print statements, and on top of that, the package works fine when I import using IPython within terminal.
epifanio
@epifanio
Feb 27 2016 01:00
jupyterlab that’s way cool! .. i’m testing it right now :) works on a signgleuser notebook (404 with jupyterhub)
i cant’ actually type anything in the new notebook, but .. thanks man! this is going to be awesome!
Ryan Morshead
@rmorshea
Feb 27 2016 01:09
Ok, I think I found out where it's hanging so that issue above is probably on my end, but it's still strange that it works in the terminal, but not in the notebook or qtconsole.
Ryan Morshead
@rmorshea
Feb 27 2016 01:23
Found it! However I don't think this on my end – everything hangs as soon as I call sys.stdout.flush(). Once I remove that, everything works just fine.
So basically, I'm thinking that if you try to call sys.stdout.flush() during the protocol for meta path finder objects, everything will hang.
Ryan Morshead
@rmorshea
Feb 27 2016 01:33
@minrk
Min RK
@minrk
Feb 27 2016 07:53
@rmorshea sounds related to the IOPub thread stuff. Will investigate.
Min RK
@minrk
Feb 27 2016 13:05
@rmorshea I can't seem to find an example that reproduces this issue. What version (git commit if not stable) of ipykernel? Can you show a snippet that causes this?