vim-ipython icon indicating copy to clipboard operation
vim-ipython copied to clipboard

Cannot start iPython monitor

Open BarrettLowe opened this issue 7 years ago • 7 comments

I don't know exactly what is wrong because I've installed ipython and vim-ipython on other machines before and they seem to work fine. I'm on a linux VM right now though and can't get the monitor hooked up with the console. I can start the monitor just fine but as soon as I start the jupyter console, I get the error "io.UnsupportedOperation: File or stream is not seekable."

It's trying to access /dev/pts/3. Is this a permission issue on my part?

BarrettLowe avatar Oct 08 '18 20:10 BarrettLowe

Are you using Python3 or Python2? The monitor currently works only using Python2 as far as I know.

DerWeh avatar Oct 08 '18 21:10 DerWeh

Can you try the update-monitor branch? I don't think I've tested it with Python 2 yet but it definitely works with Python 3. The change that should fix it is adding buffering=0 to the open() call.

wilywampa avatar Oct 09 '18 02:10 wilywampa

Ah yes. I remember doing this before now. Thanks for the memory refresher. Is there any reason this isn't in master?

BarrettLowe avatar Oct 15 '18 16:10 BarrettLowe

@DerWeh Can you do me a favor and check if that branch works with Python 2? Not having tested it is the only reason it's not in master.

wilywampa avatar Oct 15 '18 23:10 wilywampa

@wilywampa Sorry for the long delay. Was very occupied and forgot about it... I can run the monitor neither with python3 nor python2. What is from highlighter import highlight? I cannot find any package highlighter.

DerWeh avatar Feb 03 '19 11:02 DerWeh

I updated the update-monitor branch and tested it with Python 2. Can you please give it a try before I merge it into master?

wilywampa avatar Mar 17 '19 20:03 wilywampa

Sorry this took so long. Yes it looks good with python 2. Merge away! Thanks

BarrettLowe avatar Apr 08 '19 13:04 BarrettLowe