Notebook support for Wolfram Language in VS Code
Install this extension from VS Code Marketplace.
To create a new Wolfram Language notebook, execute Create New Wolfram Language Notebook in the Command Palette, or create a new file with
Execute Manage Kernels command and choose Use wolframscript to add
Add a code cell, type Wolfram language code in the cell, and evaluate it.
Syntax Highlighting: The notebook highlights Wolfram language syntax, common built-in functions, and full character names, e.g.
Auto-completion and Usages: Auto-completion for built-in functions are provided. Their usage information is displayed when typing and hovering.
Output Renderer: The notebook renders common Wolfram language expressions into HTML for better presentations. Graphics are shown as rasterized images.
Export as Wolfram notebook: The notebooks can be exported as Wolfram notebooks, containing markdown cells, code cells and their outputs.
Remote kernel: When configured, the notebook can establish an ssh connection to the remote machine, and the computations are done remotely. Code and outputs can be stored either on the remote machine or locally.
To add a new kernel, click ⨉ Wolfram Kernel in the status bar and choose Add a new kernel (when no kernel is currently connected). By default, the command launching the kernels is
Using VS Code Remote Development
With this approach, you use VS Code to connect to remote machines, containers, or WSL, and to work with the files and the kernel on the remote system. To do this, you need to:
Launch Remote Kernel via SSH
With this approach, you launch and connect to a remote kernel via SSH: code and files are stored locally, and the communication with the remote kernel is managed by the extension.
To add a remote kernel, choose On a remote machine, and provide the private key file for ssh authentication (skip the private key if it is already available to
To edit or remove kernel configurations, find
Check Release Notes.
The notebook failed to connect to a kernel.
The output of an evaluation was not what I expected.
How can I use the notebook with Wolfram Language Server?