Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching jupyter lab fails silently #146

Open
andersy005 opened this issue Mar 11, 2022 · 1 comment
Open

Launching jupyter lab fails silently #146

andersy005 opened this issue Mar 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@andersy005
Copy link
Member

When verifying the existing of jupyter in user's environment, we rely on this command:

check_jupyter_status = 'which jupyter'

However, this command isn't robust enough because having jupyter install doesn't necessary mean that jupyterlab is also installed.

Due to this, when user's have jupyter installed and jupyterlab is not installed, this command

command = rf'jupyter lab --no-browser --ip={self._get_hostname()}'

when combined with the file redirection fails silently

/bin/bash -c "source activate environment && jupyter lab --no-browser --ip=casper-login1 > None/.jupyter_forward/log_2022-03-11T15-36-40.txt 2>&1"

We should look into more robust ways to check that jupyter lab is installed and not just jupyter

@andersy005 andersy005 added the bug Something isn't working label Mar 11, 2022
@kmpaul
Copy link

kmpaul commented Mar 14, 2022

Are you checking the exit codes of the above commands? That might tell you if the commands succeeded or failed. You might also check if certain commands are actually working in sequence, such as first calling:

source activate environment

And checking the exit code to see if the command succeeded. If that doesn't succeed, then presumably the environment is missing or broken, which could be the source of the error. If that command succeeds, then try:

source activate environment && jupyter lab --help

And if that command succeeds, then presumably jupyter lab is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants