Notebook support for Wolfram Language in VS CodePrerequisites
Install this extension from VS Code Marketplace. Getting StartedTo 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. FeaturesSyntax 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 development: When configured, the notebook can establish a tunnel or 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. Kernel ConfigurationTo 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 Remote DevelopmentUse VS Code Remote TunnelWith this approach, you connect to a remote machine through a secure tunnel following this guide. When configured, you can work with the files and the kernel on the remote system from a web browser. In short, you need to:
Use VS Code Remote DevelopmentWith this approach, you use VS Code to connect to remote machines, containers, or WSL. You work with the files and the kernel on the remote system. To do this, you need to:
Launch Remote Kernel via SSHWith 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
Release NotesCheck Release Notes. FAQThe 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?
|