-
Notifications
You must be signed in to change notification settings - Fork 12
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
Better documentation of --shell #70
Comments
@andersy005 -- why does |
As you may recall, to launch jupyter lab we retrieve the I tried running the command directly. However, the hostname information I was getting back were for the login node instead of the compute node. For instance, if you were to run this command via jupyter lab --no-browser --ip=$(hostname) > $HOME/.jupyter_forward/log.txt 2>&1 The The simplest remedy for this issue was to generate a shell script, and then execute the script once we are on the compute node. My knowledge of batch schedulers is limited :). So, if you know how to get the direct command approach to work, please let me know. Another thing to keep in mind is that sometimes you need to configure the shell invocation arguments so as to make the shell act as if it had been invoked as a login shell (this is necessary in order to get the $ cat batch-script.2020-11-28T05-01-25
#!/bin/bash -l
conda activate playground && jupyter lab --no-browser --ip=$(hostname) > /glade/u/home/abanihi/.jupyter_forward/log.2020-11-28T05-01-25 2>&1 What would be its equivalent in the |
@andersy005 - do you think this is required to get this working with a compute node? |
i recall using this on compute nodes in its current form. please try it out and feel free to ask questions if you run into any issues. |
Following the incorporation of #67 we are no longer including
shell
inself.run_kwargs
but it is still used in the context of--launch-command
: https://github.com/NCAR/jupyter-forward/blob/ea8a0ec3de63730e96c081a051a60680a44a7ce5/jupyter_forward/core.py#L175I think there are two options:
shell
incli.py
: https://github.com/NCAR/jupyter-forward/blob/ea8a0ec3de63730e96c081a051a60680a44a7ce5/jupyter_forward/cli.py#L68--launch-command
and then drop--shell
altogetherThe text was updated successfully, but these errors were encountered: