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

Adds Button to choose Jupyterlab in the Basic Jupyter Notebook app #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bc_ccv_jupyter/form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,15 @@ attributes:
value: ""
label: "Reservation"
help: "Enter the reservation name here. Leave it blank if you are not using a reservation for submitting jobs."
mode:
widget: "radio"
value: "0"
options:
- ["Jupyter Lab","1"]
- ["Jupyter Notebook","0"]
form:
- anaconda_module
- mode
- conda_env
- modules
#- jupyterlab_switch
Expand Down
2 changes: 1 addition & 1 deletion bc_ccv_jupyter/template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ echo "TIMING - Starting jupyter at: $(date)"

# Launch the Jupyter Notebook Server
set -x
jupyter-notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
jupyter <%= context.mode == "1" ? "lab" : "notebook" %> --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>