Describe the bug
The october update of vscode brought
a nice feature where jupyter notebooks run directly inside vscode,
see https://code.visualstudio.com/docs/python/jupyter-support.
Unfortunatly, vim mode is completely off when opening a .ipynb file.
To Reproduce
Expected behavior
I'd expect entering a cell to drop me into normal mode,
and 'escape' in normal mode to leave the cell.
Environment (please complete the following information):
As far as I know, we have no control over this. Please file an issue with the VSCode team.
@J-Fields
According to VSCode team, we should request the issue here. #81812
I believe this is more of a consequence of how the extension built the feature, you should go through their repo first and maybe VS Code could provide APIs to help support this.
Thanks for pointing that out @thoo. I actually think "the extension" refers to the python extension which enables the fancy view of notebooks. My understanding is that they use a webview so extensions within the cells won't work (see this comment and this older issue I just recalled).
Thanks for clarification. If anyone looking for this information, here is the issue #7866 from vscode python-extension. As of now, vim mode is not supported at jupyter notebook files.
Sorry but this isn't supported at this time. VS code extensions don't load in the notebook editor.
See this other bug:7875
Hi!
I have a good news. With new API Juptyer Notebooks got a better support from VS Code.
I just tried do all by instruction here:
https://towardsdatascience.com/vscode-jupyter-notebooks-are-getting-an-upgrade-cc9aaaefc744
In this short article also an instruction of how to open jupyter notebook through fancy new fully supported mode.
And vim mode worked for me! It's no longer an issue.
Hi!
I have a good news. With new API Juptyer Notebooks got a better support from VS Code.
I just tried do all by instruction here:
https://towardsdatascience.com/vscode-jupyter-notebooks-are-getting-an-upgrade-cc9aaaefc744
In this short article also an instruction of how to open jupyter notebook through fancy new fully supported mode.And vim mode worked for me! It's no longer an issue.
Well, I use:
Even after disabling and restarting the last plugin, I still have this behavior:
So no normal mode for ipynb.... How did you get this to work, exactly?
I'm in the same boat as @raoulg... New insiders version of Jupyter integration is very nice, but I can't exit normal mode
@raoulg The instructions at https://towardsdatascience.com/vscode-jupyter-notebooks-are-getting-an-upgrade-cc9aaaefc744 can only be read by people that pay for access to Medium. Could you add the relevant parts in this issue so I can see the steps to get Vim to work in Jupyter cells?
@raoulg The instructions at https://towardsdatascience.com/vscode-jupyter-notebooks-are-getting-an-upgrade-cc9aaaefc744 can only be read by people that pay for access to Medium. Could you add the relevant parts in this issue so I can see the steps to get Vim to work in Jupyter cells?
@mvolkmann
I could read it by just register an account without paying.
@dang-qi I think that's because you haven't read many Medium articles yet. I have hit the free limit and now need to pay $5/month to read more.
Get a First Look at These New Features
These features are available at the Insiders version of both VSCode and the Python extension. Put simply, here are the steps to enable these experimental features:
Download & Install Visual Studio Code Insiders here. Install the Python extension on the Extension manager. Enable the Insiders Daily channel for the Python extension.Image for post
Image for postThat’s it! It’ll start installing and let you know to reload your VSCode Insiders after completion. Now, whenever you wish to open an .ipynb file with the new Jupyter Notebook UI, open the context menu (right-click on the file) and select “Open in Preview Notebook Editor”.
Note that following these instructions did not enable VSCodeVim for me, not sure how it worked for somebody else.
Thanks @rickyelopez! I used to use VS Code Insiders but decided I didn't need the risk of daily updates breaking things. I think I'll wait until this is available in a stable version. But I'm glad to hear Vim support in Jupyter Notebooks should be coming soon!
Thanks @rickyelopez! I used to use VS Code Insiders but decided I didn't need the risk of daily updates breaking things. I think I'll wait until this is available in a stable version. But I'm glad to hear Vim support in Jupyter Notebooks should be coming soon!
Following those instructions did not work for enabling Vim support for me. Did they work for you?
@rickyelopez I didn't try it because I prefer not to use the Insiders version of VS Code.
@rickyelopez I didn't try it because I prefer not to use the Insiders version of VS Code.
Gotcha.
@ishipachev can you comment on whether you did anything special to get this working after following those instructions?
Hi
for me it works in wsl2, Ubuntu 20.4. Usinig it directly in Ubuntu it doesn't work.
@dang-qi I think that's because you haven't read many Medium articles yet. I have hit the free limit and now need to pay $5/month to read more.
Psssssst 🤫, _try incognito mode and thank me later_
Most helpful comment
Hi!
I have a good news. With new API Juptyer Notebooks got a better support from VS Code.
I just tried do all by instruction here:
https://towardsdatascience.com/vscode-jupyter-notebooks-are-getting-an-upgrade-cc9aaaefc744
In this short article also an instruction of how to open jupyter notebook through fancy new fully supported mode.
And vim mode worked for me! It's no longer an issue.