Skip to content

[DO NOT MERGE] Enable jupyterlmod's server extension #8

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

Open
wants to merge 1 commit into
base: master
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
1 change: 1 addition & 0 deletions template/before.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ c.NotebookApp.open_browser = False
c.NotebookApp.allow_origin = '*'
c.NotebookApp.notebook_dir = '${HOME}'
c.NotebookApp.disable_check_xsrf = True
c.NotebookApp.nbserver_extensions = {"jupyterlmod": True}
EOL
)
2 changes: 1 addition & 1 deletion template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ echo "TIMING - Starting jupyter at: $(date)"

# Launch the Jupyter Notebook Server
set -x
jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
PYTHONPATH=$HOME/.local/lib/python3.6/site-packages jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the idea with this change that the jupyterlmod extension is installed in your home directory under PYTHONPATH=$HOME/.local/lib/python3.6/site-packages?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We checked and it turned out that those site packages were not being loaded which is surprising because it is part of the default Python load path.