Skip to content

Commit

Permalink
fix jupyter desktop shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz committed Feb 15, 2018
1 parent edf5cec commit 7a6a93e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/jupyter/templates/apps.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Encoding=UTF-8
Name=Jupyter Apps
Comment=Launch AiiDA Jupyter Apps
Exec=source {{ jupyter_apps_folder }}/start.sh
Exec={{ jupyter_apps_folder }}/start.sh
Icon=utilities-terminal
Type=Application
3 changes: 2 additions & 1 deletion roles/jupyter/templates/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
"{{ aiida_venv }}/bin/activate"
source "{{ aiida_venv }}/bin/activate"
export PYTHONPATH=$PYTHONPATH:{{ jupyter_base_folder }}
jupyter notebook --notebook-dir="{{ jupyter_base_folder }}" \
--NotebookApp.default_url="/apps/apps/home/start.ipynb"

0 comments on commit 7a6a93e

Please sign in to comment.