Skip to content

Running VSCode Web IDE inside the Jupyter environment

License

Notifications You must be signed in to change notification settings

pc2/jupyter-code-server

Repository files navigation

Binder

jupyter-code-server

Running VSCode Web IDE code-server inside the Jupyter environment.

JupyterLab

Table of Contents

Requirements

Installation

python3 -m pip install jupyter-code-server

Configuration

Setting the working directory

The environment variable CODE_WORKING_DIRECTORY is prioritised and can be changed for the VSCode Web IDE independently of the Jupyter working/notebook directory.

The order/priority is as follows:

  1. CODE_WORKING_DIRECTORY, if not set:
  2. JUPYTERHUB_ROOT_DIR, if not set:
  3. JUPYTER_SERVER_ROOT, if not set:
  4. HOME

Loading code-server using Lmod

An example of loading code-server via Lmod can be found in the branch lmod_pre_start: lmod_pre_start

Important: You might want to change the loaded code-server version.