Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:jupyter [2025/03/05 12:01] – [WSL1] darron | tools:jupyter [2025/03/08 01:07] (current) – darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====Jupyter | + | ====Jupyter==== |
- | [[https:// | + | This page demonstrates installation Jupyter notebook with [[projects:wikibass|wikiBASS]]. |
- | ===WSL1=== | + | ===Debian=== |
+ | |||
+ | Follow the guide for [[projects: | ||
+ | which installs Jupyter as a dependency within its virtual environment. | ||
+ | |||
+ | ==Run== | ||
+ | |||
+ | < | ||
+ | jupyter-notebook | ||
+ | </ | ||
+ | |||
+ | ===Windows=== | ||
+ | |||
+ | Install [[https:// | ||
+ | instructions found in [[https:// | ||
- | Install [[https:// | + | Setup and run notebook from Windows PowerShell |
- | instructions for the [[https:// | + | |
==Setup== | ==Setup== | ||
Line 12: | Line 25: | ||
< | < | ||
py -m pip install jupyter | py -m pip install jupyter | ||
+ | py -m pip install notebook | ||
</ | </ | ||
- | ==Script== | + | ==Run== |
+ | |||
+ | < | ||
+ | jupyter-notebook | ||
+ | </ | ||
+ | |||
+ | ===WSL1=== | ||
+ | |||
+ | Follow the instructions above for Windows to install Python and Jupyter. | ||
+ | |||
+ | ==Setup== | ||
+ | |||
+ | Create a shell script to run Jupyter in WSL1 utilising the Windows | ||
+ | installation. | ||
+ | |||
+ | __jupyter.sh__ | ||
- | __lab.sh__ | ||
< | < | ||
#! /bin/sh | #! /bin/sh | ||
+ | |||
+ | if test $# -ne 1; then | ||
+ | echo " | ||
+ | exit | ||
+ | fi | ||
mkdir -p " | mkdir -p " | ||
Line 28: | Line 61: | ||
JUPYTER=" | JUPYTER=" | ||
- | $PYTHON $JUPYTER lab | + | case " |
+ | notebook) | ||
+ | | ||
+ | ;; | ||
+ | lab) | ||
+ | $PYTHON $JUPYTER lab | ||
+ | ;; | ||
+ | *) | ||
+ | echo " | ||
+ | exit | ||
+ | esac | ||
</ | </ | ||
- | ==Run== | + | ===Run== |
< | < | ||
- | sh lab.sh | + | sh jupyter.sh notebook |
</ | </ | ||
+ | |||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// |