Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with IPython version 3.0.0 #19

Open
mehrtash opened this issue Mar 2, 2015 · 20 comments
Open

Not working with IPython version 3.0.0 #19

mehrtash opened this issue Mar 2, 2015 · 20 comments

Comments

@mehrtash
Copy link

mehrtash commented Mar 2, 2015

By updating to version 3.0.0 vimception stops working. Pressing i (insert mode) sends kernel interrupting signal.

@mehrtash mehrtash changed the title Not working with ipython version 3.0.0 Not working with iPython version 3.0.0 Mar 2, 2015
@John-Colvin
Copy link

%load_ext vimception doesn't work for me with ipython 3.

Javascript error adding output!
ReferenceError: Cell is not defined
See your browser Javascript console for more details.
Javascript error adding output!
ReferenceError: Cell is not defined
See your browser Javascript console for more details.

ReferenceError: Cell is not defined {stack: (...), message: "Cell is not defined"}message: "Cell is not defined"stack: "ReferenceError: Cell is not defined↵ at eval (eval at (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:623:18), :374:5)↵ at append_javascript (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:623:13)↵ at OutputArea.append_mime_type (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:569:39)↵ at OutputArea.append_display_data (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:533:18)↵ at OutputArea.append_output (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:320:18)↵ at OutputArea.handle_output (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:234:14)↵ at CodeCell.get_callbacks.iopub.output (http://localhost:8888/static/notebook/js/codecell.js?v=20150311185300:456:52)↵ at Kernel._handle_output_message (http://localhost:8888/static/services/kernels/kernel.js?v=20150311185300:997:13)↵ at x.extend.proxy.x.isFunction.i (http://localhost:8888/static/components/jquery/jquery.min.js?v=20150311185300:4:5488)↵ at Kernel._handle_iopub_message (http://localhost:8888/static/services/kernels/kernel.js?v=20150311185300:1024:13)"get stack: function () { [native code] }set stack: function () { [native code] }proto: Error
outputarea.js?v=20150311185300:625 ReferenceError: Cell is not defined {stack: (...), message: "Cell is not defined"}message: "Cell is not defined"stack: "ReferenceError: Cell is not defined↵ at eval (eval at (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:623:18), :374:5)↵ at append_javascript (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:623:13)↵ at OutputArea.append_mime_type (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:569:39)↵ at OutputArea.append_display_data (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:533:18)↵ at OutputArea.append_output (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:320:18)↵ at OutputArea.handle_output (http://localhost:8888/static/notebook/js/outputarea.js?v=20150311185300:234:14)↵ at CodeCell.get_callbacks.iopub.output (http://localhost:8888/static/notebook/js/codecell.js?v=20150311185300:456:52)↵ at Kernel._handle_output_message (http://localhost:8888/static/services/kernels/kernel.js?v=20150311185300:997:13)↵ at x.extend.proxy.x.isFunction.i (http://localhost:8888/static/components/jquery/jquery.min.js?v=20150311185300:4:5488)↵ at Kernel._handle_iopub_message (http://localhost:8888/static/services/kernels/kernel.js?v=20150311185300:1024:13)"get stack: function () { [native code] }set stack: function () { [native code] }proto: Error
VM2116:58 Great success
codemirror.js?v=20150311185300:4622 Uncaught TypeError: Cannot read property 'attach' of undefinedcodemirror.js?v=20150311185300:4622 (anonymous function)codemirror.js?v=20150311185300:2248 (anonymous function)codemirror.js?v=20150311185300:4140 CodeMirror.setOptionVM2116:16 to_modeVM2116:17 toVM2116:88 successjquery.min.js?v=20150311185300:4 (anonymous function)jquery.min.js?v=20150311185300:4 x.Callbacks.ljquery.min.js?v=20150311185300:4 x.Callbacks.c.fireWithjquery.min.js?v=20150311185300:4 x.extend.when.sjquery.min.js?v=20150311185300:4 x.Callbacks.ljquery.min.js?v=20150311185300:4 x.Callbacks.c.fireWithjquery.min.js?v=20150311185300:6 kjquery.min.js?v=20150311185300:6 x.ajaxTransport.x.support.cors.e.crossDomain.send.t
VM2117:58 Great success
codemirror.js?v=20150311185300:4622 Uncaught TypeError: Cannot read property 'attach' of undefinedcodemirror.js?v=20150311185300:4622 (anonymous function)codemirror.js?v=20150311185300:2248 (anonymous function)codemirror.js?v=20150311185300:4140 CodeMirror.setOptionVM2117:16 to_modeVM2117:17 toVM2117:88 successjquery.min.js?v=20150311185300:4 (anonymous function)jquery.min.js?v=20150311185300:4 x.Callbacks.ljquery.min.js?v=20150311185300:4 x.Callbacks.c.fireWithjquery.min.js?v=20150311185300:4 x.extend.when.sjquery.min.js?v=20150311185300:4 x.Callbacks.ljquery.min.js?v=20150311185300:4 x.Callbacks.c.fireWithjquery.min.js?v=20150311185300:6 kjquery.min.js?v=20150311185300:6 x.ajaxTransport.x.support.cors.e.crossDomain.send.t

@z0k
Copy link

z0k commented Mar 18, 2015

I'm getting the following error too:

Javascript error adding output!
ReferenceError: Cell is not defined
See your browser Javascript console for more details.
Javascript error adding output!
ReferenceError: Cell is not defined
See your browser Javascript console for more details.

I'm using Jupiter on Chrome.

@qguv
Copy link

qguv commented Apr 1, 2015

Hello. Same error as above. Jupyter for Python 3 (so ipython3) on latest Firefox on OS X Yosemite.

@ghost
Copy link

ghost commented Apr 13, 2015

Same error as above for ipython3 on firefox 37.0.1 on linux. Is there a workaround?

@tomirendo
Copy link

Same thing here.... Ipython3.2, python 3.4.2 and python 2.7.3(64bit)
All on chrome

@mmagnuski
Copy link

Has anybody had any progress with this? I would love to use vimception, but given I don't know any Javascript moves - I have trouble to just imagine how to fix this problem (aprart from learning javascript first 😄 ).

@dvbuntu
Copy link

dvbuntu commented Aug 19, 2015

Just adding that I get the same error, ipython 3.2.1 with python 3.4.3 and Firefox 39. I think that this maybe a problem with codemirror? Except I've been able to use the vim on their test page. https://github.com/asford/notebook_input_mode purports to work with ipython3, but I haven't been able to get that working either. I just can't seem to switch into vim's command mode.

@scottkidder
Copy link

I just got https://github.com/asford/notebook_input_mode working. Make sure that your IPython profile has nbconfig/notebook.json with the load_extensions stuff in it (the setup.py file should do this for the default profile). Then I have a 'Key Map' section under the Edit menu.

@gessulat
Copy link

Same problem here python 2.7.10 (anaconda) + chrome :(

@mmagnuski
Copy link

@scottkidder - maybe you could create a pull request?
@ivanov - Vimceptions seems not to be developed any further, right? People would like to use it under iPython > 2 and have problems with that. Any chance you could help?

@mmagnuski
Copy link

BTW @mehrtash - it is IPython, they don't like the "little i" version :)

@justmytwospence
Copy link

I would encourage people to check out another project that does everything vimception does without any of the issues: https://github.com/asford/notebook_input_mode

@mmagnuski
Copy link

@justmytwospence thanks! Unfortunatelly there is no readme there :(

@dvbuntu
Copy link

dvbuntu commented Nov 18, 2015

@mmagnuski I was able to get notebook_input_mode working a few weeks ago. I don't think it's as fully featured as vimception, but it's worth it. I describe a little of how to install it here under "Setup" (as well as general Jupyter comments).

@justmytwospence
Copy link

@dvbuntu what does vimception do that notebook_input_mode doesn't do?

@gessulat
Copy link

@dvbuntu thanks for the link. Could not figure out the keymap part (edit -> vim). Works like a charm.

@gessulat
Copy link

created a pull request with a minimal readme.md for notebook_input_mode

@mmagnuski
Copy link

@dvbuntu thanks! 👍

@dvbuntu
Copy link

dvbuntu commented Nov 19, 2015

@justmytwospence I was under the impression that vimception supported more vim keybindings than notebook_input_mode. The latter, however, has had enough of the core functionality for me that I haven't really noticed yet. For serious software development, it might become more apparent, but then you probably wouldn't be doing that within Jupyter anyway :)

@ivanov ivanov changed the title Not working with iPython version 3.0.0 Not working with IPython version 3.0.0 Nov 20, 2015
@mehrtash
Copy link
Author

I switched to use lambdalisue for jupyter: https://github.com/lambdalisue/jupyter-vim-binding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants