-
Notifications
You must be signed in to change notification settings - Fork 294
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
Support language features for other languages when using cell magics #4588
Comments
Related to microsoft/vscode#140147. |
I hope you're planning for sql too, it's so annoying as of the current state, yesterday I changed every cell. When I opened the same notebook today all the types are reset to Python! |
I expect this feature will be realized soon. :) |
Sorry this isn't on our radar at the moment. |
Hi, Do you have a plan to fix this problem? For example, I use both Python and Julia in one Jupyter notebook. I found that clicking the lower right button of the cell can demonstrate the menu which controls the syntax highlighting. I guess that If Julia option would be added to the menu, the problem gets solved. However, I prefer the feature that allows multiple kernels on one notebook can be native of Jupyter extension. |
This issue is about autodetecting cell magics that change the language. The plan is to make the language change automatically as you type a cell magic. It's not a high priority at the moment but will likely be addressed eventually. What you're describing is more of a polyglot kernel. The jupyter extension has no plans for a polyglot kernel. However .NET interactive does. A polyglot kernel would likely support ALL languages in that dropdown. @DonJayamanne also mentioned another polyglot kernel in your discussion of this topic. The IPython kernel supports only a subset of languages based on known cell magics that can change the language from python to something else. It seems julia is possible in that list though with the julia.magic extension: |
Thanks a lot for your reply!!! Julia language should be added to the menu. However, I still need to change the cell language every time I open the notebook. I wish that Julia code can be demonstrated perfectly in Python kernel Jupyter notebook. Sincerely |
One more use case that seems not mentioned, If there would be for example
it'd be nice if it could be detected that this is yaml syntax. |
Instead of autodetecting, which might be tricky, would it be possible to allow a custom mapping? For example, I have a Kusto syntax highlighting extension that would be great to autoswitch when |
I also think this would be useful, whether it's done automatically or at least exposed in the api such that a motivated extension author could make it happen |
Created an upstream issue microsoft/pylance-release#4969 |
Closing in favour of upstream issue microsoft/pylance-release#4969 |
I would like to run bash scripts in a cell.
I use cell magics for this.
I would like the langauge of the cell to be automatically set to
bash
Similarly when using %html, %%svg, etc...
%%script julia
%%html
%%kql
Provides intellisense, syntax highlighting & the like (ie. use VS Code features to improving cell editing experience for non-python & non-markdown cells)
Additionally we should make sure all of the languages supported by magics. This includes things like:
The text was updated successfully, but these errors were encountered: