Visual Studio Code Server
Visual Studio Code is a source-code editor made by Microsoft. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. For more information about the server, see the home page: Visual Studio Code Server.
To start VS Code Server in a CoCalc project, select Servers in the Activity Bar and click the “VS Code” button:
When you click the link to start Visual Studio Code Server, a new browser tab opens with VS Code running as a browser application. All files are in the project, and therefore accessible from any browser.
There’s no transparent support for multiple collaborative editing yet.
Plotting from Python Scripts
You can use VS Code to work with Jupyter notebooks with inline plots. It is also possible to make use of CoCalc support for X11 to display plots from python scripts.
In the CoCalc browser tab open X11 desktop.
In the terminal frame enter
echo $DISPLAY
which will show something like:1295981061
Set
$DISPLAY
environment variable to this value (including the column) in your VS Code script/terminal.Run your code - plots should show up on the X11 desktop!