python-snippets icon indicating copy to clipboard operation
python-snippets copied to clipboard

Suggestion: Make compatible with .ipynb extensions

Open jeluengasm opened this issue 3 years ago • 3 comments

Hi.

This extension seems to me the best of all for Python development. However, when using the Jupyter Notebook extension for VSCode, the snippets doesn't work. I think it's because this extension doesn't work for *.ipynb extension files. Please, in a next release could you add this file types? Thank you so much.

jeluengasm avatar May 24 '21 01:05 jeluengasm

Seems like the original creator has lost interest in this project. Too bad. Maybe there's a maintained fork somewhere.

pohlt avatar Aug 14 '21 21:08 pohlt

@pohlt I need help to support the *.ipynb extension, you're welcome :-) I have an idea on why the snippets doesn't work when you open the *ipynb files: the scope is of language is "python", maybe a "python, ipynb" (I guess on the second one) could work. See https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-scope for other information.

@jeluengasm the good and the bad of the social coding :-)

Btw, all PRs are welcome! The project is still alive.

cstrap avatar Oct 13 '21 12:10 cstrap

I've the jupyter extension installed and I tried to open a ipynb file in VSCode. Then I added a code section and I selected the language mode to Magic Python. The snippet extension works like a charm.

cstrap avatar Oct 13 '21 15:10 cstrap