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

LSP for wolfram language in VSCode jupyter notebook #32

Open
BinaryQuantumSoul opened this issue Mar 29, 2023 · 5 comments
Open

LSP for wolfram language in VSCode jupyter notebook #32

BinaryQuantumSoul opened this issue Mar 29, 2023 · 5 comments

Comments

@BinaryQuantumSoul
Copy link

So I have the WolframLanguageForJupyter paclet and kernel which runs fine in both Jupyter Notebook and in the Visual Studio code ipynb support.

I also installed the VSCode Wolfram extension. The syntax highlighting works fine, and the language server protocol is working fine for any files, except .ipynb. In particular, it won't give linting or documentation if I'm editing a notebook cell set to wolfram language.

How should I configure the extension to still run LSP for those cases ?

@asukaminato0721
Copy link

+1 for https://github.com/njpipeorgan/wolfram-language-notebook , I miss the code formatter.

@BinaryQuantumSoul
Copy link
Author

+1 for https://github.com/njpipeorgan/wolfram-language-notebook , I miss the code formatter.

I'll check that out, thanks

@asukaminato0721
Copy link

+1 for https://github.com/njpipeorgan/wolfram-language-notebook , I miss the code formatter.

I miss the code formatter.

https://github.com/asukaminato0721/mmafmt/

@asukaminato0721
Copy link

asukaminato0721 commented Dec 15, 2023

Now I know it...

documentSelector: [{ scheme: 'file', language: 'wolfram' }],

change to

 documentSelector: [{ language: 'wolfram' }], 

then it could work on ipynb.

@asukaminato0721
Copy link

image

it works 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

2 participants