Skip to main content

OpenVSCode-Server for JupyterLab

Project description

build

jupyter-openvscodeserver-proxy

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


Jupyter-openvscodeserver-proxy example

Requirements

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

Configuration

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

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

The jupyter-openvscodeserver-proxy can be configures via the following environment variables

  • JUPYTER_OPENVSCODE_PROXY_TIMEOUT = <int> , default = 60

    • Specifies how long jupyter-openvscodeserver-proxy shall wait for the OpenVSCode-Server to startup until it gives up.
  • JUPYTER_OPENVSCODE_PROXY_USE_SOCKET = 'FALSE' | 'TRUE' , default = FALSE

    • Use unix sockets for highest security standards.
  • JUPYTER_OPENVSCODE_PROXY_DEBUG = 'FALSE' | 'TRUE' , default = FALSE

    • Enable to print some log messages to stderr.
  • JUPYTER_OPENVSCODE_PROXY_SERVER_DATA_DIR = <path>

    • Specifies the directory that server data is kept in. If not set the default is used.
  • JUPYTER_OPENVSCODE_PROXY_USER_DATA_DIR = <path>

    • Specifies the directory that user data is kept in. If not set the default is used.
  • JUPYTER_OPENVSCODE_PROXY_EXTENSIONS_DIR = <path>

    • Specifies the directory that extensions are kept in. If not set the default is used.

Install

Create and Activate Environment

virtualenv -p python3 venv
source venv/bin/activate

Install jupyter-openvscodeserver-proxy

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

Enable jupyter-openvscodeserver-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 openvscode-server icon from the Jupyter Lab Launcher or the openvscode-server item from the New dropdown in Jupyter Classic.
Connect to your database as instructed in the Quickstart section.

This package calls openvscode-server with a bunch of settings.

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_openvscodeserver_proxy-0.9.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file jupyter_openvscodeserver_proxy-0.9.1.tar.gz.

File metadata

File hashes

Hashes for jupyter_openvscodeserver_proxy-0.9.1.tar.gz
Algorithm Hash digest
SHA256 befdc698502a9b96e33c5a7cd9d2e1f423130913ecad43ec0db10f7891fc9755
MD5 177c9568216fa4510e4e65a6ba028dcb
BLAKE2b-256 894536da8c25a6624267789338f2d9e539168cd7b2c5078ac2280928b170655f

See more details on using hashes here.

File details

Details for the file jupyter_openvscodeserver_proxy-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_openvscodeserver_proxy-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85484f1d8c8223feee218e75cc863ff248b30240ea28fe6f926bf58c16128d6b
MD5 80b4ed38a47249a4b2d3b9fcf1c7d813
BLAKE2b-256 515c3e75e7027d13d4e7a580c25946df41930c4f0e279e6cc92700108ea97de8

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