Code Monkey home page Code Monkey logo

vim-ipython's People

Contributors

arnaldorusso avatar derweh avatar dstahlke avatar enzbang avatar ivanov avatar jjhelmus avatar koepsell avatar luispedro avatar minrk avatar nonameentername avatar ogrisel avatar pag avatar pielgrzym avatar wilywampa avatar wmvanvliet avatar zeekay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-ipython's Issues

Cannot start iPython monitor

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?

failed connecting to IPython

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?

Is it possible to use vim-ipython with only python3 support?

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

Completion Metadata

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.