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

Bash cell rendered as python #10739

Closed
RafalSkolasinski opened this issue Jul 8, 2022 · 1 comment
Closed

Bash cell rendered as python #10739

RafalSkolasinski opened this issue Jul 8, 2022 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged

Comments

@RafalSkolasinski
Copy link

RafalSkolasinski commented Jul 8, 2022

I believe #4554 should not be closed. Would normally comment there but your policy locks threads.

The reply from you before closing was basically that it's PyLance problem. I rather believe this is a problem of rendering jupyter notebook part to understand that cell is not a Python cell but rather a bash cell and should be validated / rendered as such.

As was pointed in original thread a cell for a magic can be also%%sh, %%html, %%javascript.
Saying this is responsibility of PyLance which is Feature-rich language support for Python in Visual Studio Code to render / validate other languages is wrong.

@RafalSkolasinski RafalSkolasinski added the bug Issue identified by VS Code Team member as probable bug label Jul 8, 2022
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jul 8, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Jul 11, 2022

Thanks for the issue.

The 'language' of a cell determines what language server is in use. That's why Pylance was mentioned.

However we have a feature request to automatically change the language based on magics being entered. See this issue here:
#4588

@rchiodo rchiodo closed this as completed Jul 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants