Package: jupyterlab-novnc
jupyterlab-novncThis package adds a novnc viewer to JupyterLab. It's a simple extension that just runs noVNC in an iframe.You can configure noVNC connections in the settings panel. You probably want to configure at leasthostandport. Additionally you can add a name to your connection to make it easier to find.This extension is composed of a Python package namedjupyterlab-novncfor the server extension and a NPM package namedjupyterlab-novncfor the frontend extension.Icons made bySmartlinefromwww.flaticon.comSettingsYou need to open the Advanced Settings menu of JupyterLab and configure jupyterlab-novnc. Add your desired configurations to the "configured_endpoints" setting as a list.After configuration is done, you'll have one icon per configured endpoint:The noVNC panel can also be opened from the command pallet.For example:{
    "configured_endpoints": [
    {
        "name": "Robot",
        "host": "localhost",
        "port": 6080,
        "resize": "scale",
        "password": "mycrazycomplicatedpassword"
    },
    {
      ...
    }
}Allowed settings values for each item are:{name:string;// optional name, otherwise host is used// autoconnect - Automatically connect as soon as the page has finished loading.autoconnect:boolean;// reconnect - If noVNC should automatically reconnect if the connection is dropped.reconnect:boolean;// reconnect_delay - How long to wait in milliseconds before attempting to reconnect.reconnect_delay:number;// host - The WebSocket host to connect to.host:string;// port - The WebSocket port to connect to.port:number;// encrypt - If TLS should be used for the WebSocket connection.encrypt?:boolean;// path - The WebSocket path to use.path?:string;// password - The password sent to the server, if required.password?:string;// repeaterID - The repeater ID to use if a VNC repeater is detected.repeaterID?:string;// shared - If other VNC clients should be disconnected when noVNC connects.shared?:boolean;// bell - If the keyboard bell should be enabled or not.bell?:boolean;// view_only - If the remote session should be in non-interactive mode.view_only?:boolean;// view_clip - If the remote session should be clipped or use scrollbars if it cannot fit in the browser.view_clip?:boolean;// resize - How to resize the remote session if it is not the same size as the browser window. Can be one of off, scale and remote.resize?:"off"|"scale"|"remote";// quality - The session JPEG quality level. Can be 0 to 9.quality?:number;// compression - The session compression level. Can be 0 to 9.compression?:number;// show_dot - If a dot cursor should be shown when the remote server provides no local cursor, or provides a fully-transparent (invisible) cursor.show_dot?:boolean;// logging - The console log level. Can be one of error, warn, info or debug.logging?:"error"|"warn"|"info"|"debug";}RequirementsJupyterLab >= 3.0Installpipinstalljupyterlab-novncTroubleshootIf you are seeing the frontend extension, but it is not working, check
that the server extension is enabled:jupyterserverextensionlistIf the server extension is installed and enabled, but you are not seeing
the frontend extension, check the frontend extension is installed:jupyterlabextensionlistContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the jupyterlab_novnc directory# Install package in development modepipinstall-e.# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# If using a server extension, it must be manually installed in develop modejupyterserverextensionenable<extension_name># Rebuild extension Typescript source after making changesjlpmrunbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmrunwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm run buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseUninstallpipuninstalljupyterlab_novnc