Skip to main content

Code-Server for JupyterLab

Project description

build

jupyter-codeserver-proxy

Integrate code-server in your Jupyter environment for an fast, feature-rich and easy to use remote desktop in the browser.

ATTENTION:
code-server has no official support for passing the password/token via url-parameters. Sad thing, a pull request was not merged [more]. Hence, we need to disable authentication at the moment completly with --auth=none [more]. This allows any user who can access localhost:port of the machine running the code-server to use it - even if he is not authorized to do so. An alternative solution to close this security hole might be to use unix sockets instead of ports. As soon as this is fully supported by jupyter-server-proxy we will switch [more].

Requirements

  • Python 3.6+
  • Jupyter Notebook 6.0+
  • JupyterLab >= 3.x
  • jupyter-server-proxy >= 3.1.0

This package executes the code-server command.
It tries to find the code-server executable checking the following:

    1. environment variable $CODESERVER_BIN
    1. <dir-of-__init__.py>/bin/code-server
    1. which code-server (searching standard $PATH)
    1. special locations:
      • /opt/codeserver/bin/code-server

Install

Create and Activate Environment

virtualenv -p python3 venv
source venv/bin/activate

Install jupyter-codeserver-proxy

pip install git+https://github.com/FZJ-JSC/jupyter-codeserver-proxy.git

Enable jupyter-codeserver-proxy extensions

For Jupyter Classic, activate the jupyter-server-proxy extension:

jupyter serverextension enable --sys-prefix jupyter_server_proxy

For Jupyter Lab, install the @jupyterlab/server-proxy extension:

jupyter labextension install @jupyterlab/server-proxy
jupyter lab build

Start Jupyter Classic or Jupyter Lab

Click on the code-server icon from the Jupyter Lab Launcher or the code-server item from the New dropdown in Jupyter Classic.
Connect to your database as instructed in the Quickstart section.

Configuration

This package calls code-server with a bunch of settings.
You have to modify setup_codeserver() in jupyter_codeserver_proxy/__init__.py for change.

Credits

License

BSD 3-Clause

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-codeserver-proxy-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_codeserver_proxy-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-codeserver-proxy-0.1.0.tar.gz.

File metadata

File hashes

Hashes for jupyter-codeserver-proxy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1550a52bc821ef55f305bfd3766f92b18b1a19417940e555b26fa5fb90f47f27
MD5 1a993f281c1d1d69c384dc525dcc898c
BLAKE2b-256 2015d51640d6dd17acb12dbaf59e677ebf34fbf9f04f27d44f6460c807f7d96c

See more details on using hashes here.

File details

Details for the file jupyter_codeserver_proxy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_codeserver_proxy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1907413aed24af11e883c0aee2e9fff8fe3cdca9ce9814674fcb510a26fb3ba8
MD5 9cbb1d0502bd79619d5771816efc21b6
BLAKE2b-256 3cc72ca178ace4c776bb730b5c91502f62d545447853c7c086488f945054a582

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page