Skip to content

A fork from Apommel's project: Vscode-interactive-MATLAB terminal. I plan to do sort of my modifications, maybe PR back to the original repository.

License

Notifications You must be signed in to change notification settings

RibomBalt/vscode-matlab-interactive-terminal

 
 

Repository files navigation

Matlab Interactive Terminal for Visual Studio Code

Matlab Interactive Terminal is an extension for Visual Studio Code that allows users to launch Matlab scripts and have a working Matlab REPL directly included in Visual Studio Code. This extension uses the Matlab Engine for Python which must be correctly set up for the extension to work. It works equally on Windows, Mac OS and Linux.

Requirements

  • Python x64 3.6 or 3.7 (added to PATH), available here or through other distributions such as Anaconda
  • MATLAB R2014b (Matlab 8.4) or higher
  • MATLAB Engine API for Python, installations instructions are available here

N.B.: The Python requirements may vary depending on the Matlab version. It is advised to use the latest Matlab version (R2019b) along with Python 3.6 or 3.7 (x64). More informations about MATLAB-Python compatibility are available on MathWorks website.

Features

The extension adds three commands to Visual Studio Code, that can then be tied to key-bindings. These are:

  • Open a Matlab Terminal which opens an interactive Matlab terminal in the VS Code integrated terminal, similar to the Matlab command line
  • Run current Matlab Script which runs the currently opened Matlab script and then allows the user to interact with it through the opened terminal
  • Run current selection in Matlab which runs the currently selected text in a Matlab terminal. If no text is selected, the current line is run instead

Recommended VS Code Extensions

  • Matlab (from Xavier Hahn) provides syntax coloration, snippets and linting for the Matlab language. Matlab Interactive Terminal is thought for working with it.
  • Matlab Code Run (from Bram Vanbilsen) is a good alternative to Matlab Interactive Terminal without the Python and Matlab Engine API dependencies. It should provide similar functionalities on both Mac OS and Linux.

Known Issues

See https://github.com/apommel/vscode-matlab-interactive-terminal/issues

About

A fork from Apommel's project: Vscode-interactive-MATLAB terminal. I plan to do sort of my modifications, maybe PR back to the original repository.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 53.5%
  • TypeScript 46.5%