Jupyter notebook insists on opening elinks if notebook is specified on command line

Is it expected that jupyter notebook --no-browser something.ipynb opens an elinks browser for the notebook? I have to pass something like --browser=_DUMMY_ for it to actually disable the browser and just run a server with the appropriate token URLs printed to stdout, which is what I really want.

This is with jupyter from conda-forge:

# Name                    Version                   Build  Channel
jupyter                   1.0.0            py38h578d9bd_7    conda-forge
jupyter_client            6.1.12             pyhd8ed1ab_0    conda-forge
jupyter_console           6.4.0              pyhd8ed1ab_1    conda-forge
jupyter_core              4.9.1            py38h578d9bd_1    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
jupyterlab_widgets        1.0.2              pyhd8ed1ab_0    conda-forge

notebook package version is probably most relevant but absent on your list. But it seems that you do use jupyterlab (as suggested by the presence of jupyterlab extensions on the list) soyou most likely also have a modern jupyter-server installed and instead you could use:

jupyter server --no-browser something.ipynb
1 Like

Thanks for the suggestion. Unfortunately, the command you suggest seems to ignore the notebook specified on the command line, and the web interface I connect to on the requested port has nothing to click on - it just says “A jupyter server is running”.

What if you install nbclassic and run:

jupyter nbclassic --no-browser something.ipynb


1 Like