Skip to content

Command jlab <server> fails to connect to server when desktop app is already open #833

Open
@lukelbd

Description

@lukelbd

Description

Connecting to a server with e.g. jlab http://localhost:2001/lab?token=<token> fails when the jupyterlab desktop app is already open.

Reproduce

  1. Open the jupyterlab desktop app
  2. Start a jupyterlab session from the terminal with jupyter lab
  3. Copy the resulting addresas and run jlab <address> from terminal
  4. The command prints "handling request in main instance" then exits
  5. The desktop app focuses but fails to connect, just opens an empty Launcher page

Expected behavior

The desktop app successfully connects to the server, auto-opens the previously-opened notebooks. Running jlab <address> before opening the app will connect successfully.

Context

  • Operating System and version: MacOS Sonoma 14.5
  • JupyterLab-Desktop version: Version 4.2.1-1
  • Installer: Insteraller .dmg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions