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

Jupyter Notebook python cell format issue #63

Closed
Theakayuki opened this issue Oct 17, 2022 · 4 comments
Closed

Jupyter Notebook python cell format issue #63

Theakayuki opened this issue Oct 17, 2022 · 4 comments

Comments

@Theakayuki
Copy link

Theakayuki commented Oct 17, 2022

image

When installed and edited a jupyter notebook will change the python format to .env its only the formating as the language and the cell still run fine. but all the python auto completion and formating gets striped.

Expected to not interfere with formatting or auto complete. like how it is not installed:

image

@motdotla
Copy link
Member

Another individual reported this to support@dotenv.org. Additional information:

I recently installed your extension for Visual Studio Code and everything was working fine until I had to open a Jupyter notebook.
It seems that there is some kind of incompatibility because the VS Code started to associate the code cells with ".env" language.
Worst of all is when you try to change it manually, the menu tells you that Python is the current language and if you select it nothing happens. it is important to clarify that there is no problem for the rest of the languages. I attached two screenshots as an example.

Is there a way to configure the extension to ignore ".ipynb" files or something similar?

@rakuzen25
Copy link

Can reproduce. Using extension version 0.21.0.

@ConnorJennison
Copy link
Collaborator

Thank you for posting this and sorry it's taken so long to address. I pushed a fix for #66 and from my testing it should also address this issue. I will follow up when it is published and let you know

@ConnorJennison
Copy link
Collaborator

v0.22.0 has been released and this should be solved now, please let me know if you run into issues with it but will close for now!

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

4 participants