Skip to main content

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

Using pre-started code-server

In case code-server is already running (e.g. started in sidecar container with Jupyter running in Kubernetes) and servig either via TCP port or UNIX socket, it is possible to proxy this already running instance instead of starting a new one with jupyter-server-proxy. Variables JSP_CODE_SERVER_PORT and JSP_CODE_SERVER_SOCKET set command to empty list which makes jupyter-server-proxy pass requests to specified port of socket.

If running code-server is listening to TCP port, environment variable JSP_CODE_SERVER_PORT may be set to port number.

If running code-server is listening to UNIX socket, environment variable JSP_CODE_SERVER_SOCKET may be set to socket file path.

If none of these environment variables are set, jupyter-code-server starts new code-server process and proxies requests to its socket.

Enable/disable launcher

By default code-server launcher is enabled and visible in JupyterLab. Option JSP_CODE_SERVER_LAUNCHER_DISABLED may be set to any non-empty value to disable launcher. This is useful when e.g. certain users are not supposed to have code-server available in Jupyterhub as there is no easy way to disable loading of entire jupyter-code-server module for these users if module is for example built into Docker image.

Disable password login

By default, code-server is started with password authentication enabled. To disable password login (e.g., for internal or trusted environments), set the environment variable CODE_DISABLE_PASSWORD to true.

Loading code-server using Lmod

If code-server needs to be loaded from an Lmod environment you can set the JSP_CODE_SERVER_LMOD_MODULE variable to the path of the module.

Example: JSP_CODE_SERVER_LMOD_MODULE=tools/code-server/4.22.1

The module will then be loaded with the help of LMOD_CMD and MODULEPATH before the code-server is started.

Release files for jupyter-code-server 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-code-server 1.2
File Interpreter ABI Platform
jupyter_code_server-1.2-py3-none-any.whl Python 3 none any Details

Release files / jupyter_code_server-1.2-py3-none-any.whl

Download URL jupyter_code_server-1.2-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
625b95be84b30dcb752329639a8b0880a3d80f00fc5eb9b85361a0a4cceb7bd8
BLAKE2b-256 checksum
How to use checksums
a1a0e84a798924cab1535db9a6d7b4ec0ac7fb8cdb4b6da8e4ac2d1490640e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.2

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file

1.1

1 release file

1.0

1 release file

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page