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

Not working with IPython version 3.0.0

Open mehrtash opened this issue 10 years ago • 20 comments
trafficstars

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

mehrtash avatar Mar 02 '15 06:03 mehrtash

%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

John-Colvin avatar Mar 11 '15 19:03 John-Colvin

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.

z0k avatar Mar 18 '15 07:03 z0k

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

qguv avatar Apr 01 '15 13:04 qguv

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

ghost avatar Apr 13 '15 22:04 ghost

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

tomirendo avatar Aug 03 '15 11:08 tomirendo

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 :smile: ).

mmagnuski avatar Aug 15 '15 12:08 mmagnuski

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.

dvbuntu avatar Aug 19 '15 00:08 dvbuntu

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.

scottkidder avatar Sep 18 '15 16:09 scottkidder

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

gessulat avatar Nov 18 '15 12:11 gessulat

@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 avatar Nov 18 '15 13:11 mmagnuski

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

mmagnuski avatar Nov 18 '15 13:11 mmagnuski

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

justmytwospence avatar Nov 18 '15 17:11 justmytwospence

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

mmagnuski avatar Nov 18 '15 22:11 mmagnuski

@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).

dvbuntu avatar Nov 18 '15 22:11 dvbuntu

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

justmytwospence avatar Nov 18 '15 22:11 justmytwospence

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

gessulat avatar Nov 19 '15 09:11 gessulat

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

gessulat avatar Nov 19 '15 09:11 gessulat

@dvbuntu thanks! :+1:

mmagnuski avatar Nov 19 '15 11:11 mmagnuski

@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 :)

dvbuntu avatar Nov 19 '15 21:11 dvbuntu

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

mehrtash avatar May 24 '16 01:05 mehrtash