vsc-python-indent icon indicating copy to clipboard operation
vsc-python-indent copied to clipboard

Doesn't work in python notebooks

Open ion-elgreco opened this issue 5 years ago • 3 comments

The extension does not seem to work in .ipynb files.

ion-elgreco avatar Oct 09 '20 09:10 ion-elgreco

Hello @ion-elgreco!

I don't use notebooks often, and definitely not in VSCode, so this was not on my radar. I'll try and see if I can make that work.

kbrose avatar Oct 21 '20 01:10 kbrose

I looked into this, but it seems like notebook mode is significantly different from "text editor" mode. I couldn't even get my keybinding to register in the notebook mode. We'd probably need to ask the developers of the Python extension how we could edit text while in notebook mode.

kbrose avatar Oct 21 '20 02:10 kbrose

I'm hopeful that some of the proposed notebook APIs can be used once they're released. They seem helpful at first glance. https://code.visualstudio.com/updates/v1_50#_notebook-api

kbrose avatar Oct 27 '20 02:10 kbrose

I think this is now working as expected? I use notebooks rarely, and pretty much never use them within VS Code, but I just checked and it seems like the indentation behavior from this extension is happening.

kbrose avatar Oct 04 '22 00:10 kbrose