wilywampa / vim-ipython Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ivanov/vim-ipython
A two-way integration between Vim and IPython 0.11+
Home Page: http://github.com/ivanov/vim-ipython
This project forked from ivanov/vim-ipython
A two-way integration between Vim and IPython 0.11+
Home Page: http://github.com/ivanov/vim-ipython
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?
When editing a Python file in the buffer, the vim-ipython
preview window closes after leaving insert mode in the main file buffer. How can I leave the vim-ipython
open even while editing the main buffer window that has the Python file?
Thanks!
Hi,
I get "Python connection attempt #%d failed - no messages" from the plugin. While IPython Console is running.
I am using ipython 3.2.1, last version of zmq 17.1.2 .
I had to change some code in zmq/eventloop/ioloop.py in order for this to sort of work(to get IPython Console to work).
if 1:#'.minitornado.' in ioloop.__name__:
from ._deprecated import ZMQIOLoop as _IOLoop
if 1:#if '.minitornado.' in ioloop.__name__:
from ._deprecated import ZMQIOLoop, install, IOLoop
Any ideas? Do you have a version combination that is guaranteed to work?
Many of my plugins require python3, and it isn't possible to compile vim with both versions, except on windows. This plugin seems to require it. I am running -python +python3
, and I cannot start vim-ipython.
When I open a .py file and type :IPython
, I get:
Traceback (most recent call last):
File "", line 1, in
File "/Users/mathe/.vim/bundle/vim-ipython/ftplugin/python/vim_ipython.py", line 209, in km_from_string
km.load_connection_file()
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jupyter_client/conne
ct.py", line 494, in load_connection_file
info = json.load(f)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/init.py", line 299, in lo
ad
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/init.py", line 354, in lo
ads
return _default_decoder.decode(s)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in dec
ode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw
_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(I am not certain this is related to python2/3, that is my only guess).
Thank you
I would like to use the IPython auto-complete via vim-ipython
. According to your documentation I added
def setup_kernel():
request = r"""
import inspect
import IPython
def completion_metadata(ip):
metadata = [dict(word=m) for m in ip.Completer.matches]
for m in metadata:
try:
obj = eval(m['word'], ip.user_ns)
except Exception:
continue
doc = inspect.getdoc(obj)
if callable(obj):
try:
m['menu'] = str(IPython.utils.signatures.signature(obj)) + '\t'
except Exception:
m['menu'] = ''
if doc:
m['menu'] += doc.split('\n')[0]
m['info'] = doc
else:
m['menu'] = str(obj)
if doc:
m['info'] = doc
return metadata
"""
send(request, silent=True)
This works more or less. But I would like to set a different word
and abbr
to get the function signature nicely without appending it (similar as in http://www.vim.org/scripts/script.php?script_id=1542). They just use separate dictionary entries for this. Adding this in the python snippet is no problem, but I have no idea how to handle this in vimscript. Is this somehow possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.