-
Notifications
You must be signed in to change notification settings - Fork 328
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
Quarto in VS Code tries to run the MatLab Jupyter kernel rather than the built in MatLab plug-in in VS-Code #9067
Comments
VSCode Quarto extension repository is https://github.com/quarto-dev/quarto. Note that Quarto is a CLI. So even if the VSCode extension can use the the other extension, a kernel is still needed to render the document the same way a Jupyter Notebook will need the kernel. Are you saying that you don't need to specify the MatLab kernel inside Jupyter Notebook when using the MatLab extension? Could you properly format your post using code blocks for code and terminal outputs? Thanks. |
@ncworstell can you format your issue correctly please ? This way will be able to look at your example correctly. See https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us thanks ! |
@cderv, I think I updated it properly. Please let me know how else I can help/what else I might need to correct. |
@ncworstell GitHub uses markdown. You only have to edit your post to make it "pretty". Take a look at the current formatting, you have |
Thanks for the example @ncworstell As context and reminder, Quarto will use Jupyter and its kernel to run the code cell you provide. More on this at https://quarto.org/docs/computations/python.html VS Code or not, this is how Quarto runs - VS Code extension of Quarto (Render or Preview button) will only call That being said, Jupyter kernel detection is explained at https://quarto.org/docs/computations/python.html#kernel-selection
When using I don't know which one, but I know one of them is not supporting correctly some jupyter technical things that prevent its usage in quarto The error you have is the one reported there. Discussion in quarto about this is at The issue at mathworks/jupyter-matlab-proxy#48 lead to some other project https://github.com/allefeld/mkernel I hope this clarifies how quarto works. You can understand now that Hope this helps. I'll close this as the kernel issue you have is reported upstream already; Please to reopen if you think I missed your point; Thanks ! |
Bug description
When I generate the Markdown preview of a quarto document with MatLab code in it, it tries to run the MatLab kernel for jupyter and does not give the option or seem to look for the MatLab plug-in for VS Code. Presumably this is because the MatLab plug-in only recently started to support code execution (https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab)
Steps to reproduce
Expected behavior
Something like this should output (I have XXX'd out personal information) should appear in the pdf output.
>> ver ----------------------------------------------------------------------------------------------------- MATLAB Version: 23.2.0.2365128 (R2023b) MATLAB License Number: XXXXXXXXX Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 19045) Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode ----------------------------------------------------------------------------------------------------- MATLAB Version 23.2 (R2023b) Simulink Version 23.2 (R2023b) Bioinformatics Toolbox Version 23.2 (R2023b) Computer Vision Toolbox Version 23.2 (R2023b) Curve Fitting Toolbox Version 23.2 (R2023b) DSP System Toolbox Version 23.2 (R2023b) Deep Learning Toolbox Version 23.2 (R2023b) Fuzzy Logic Toolbox Version 23.2 (R2023b) Global Optimization Toolbox Version 23.2 (R2023b) Image Processing Toolbox Version 23.2 (R2023b) MATLAB Compiler Version 23.2 (R2023b) MATLAB Compiler SDK Version 23.2 (R2023b) Optimization Toolbox Version 23.2 (R2023b) PLS_Toolbox Version 9.3 (24529) Parallel Computing Toolbox Version 23.2 (R2023b) Signal Processing Toolbox Version 23.2 (R2023b) SimBiology Version 23.2 (R2023b) Spreadsheet Link Version 23.2 (R2023b) Statistics and Machine Learning Toolbox Version 23.2 (R2023b) Symbolic Math Toolbox Version 23.2 (R2023b) Wavelet Toolbox Version 23.2 (R2023b)
Actual behavior
Your environment
-IDE: VSCode
Version: 1.87.1 (user setup)
Commit: 1e790d77f81672c49be070e04474901747115651
Date: 2024-03-06T00:21:36.258Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.19045
Quarto check output
The text was updated successfully, but these errors were encountered: