1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/roles/jupyterhub
2021-08-29 20:27:57 +01:00
..
defaults Lint for readability & maintainability 2021-04-15 19:21:35 +00:00
tasks Merge branch 'master' into virtualenv-for-kalite 2021-08-02 04:34:04 -04:00
templates define a set with an iterable list 2021-08-29 20:27:57 +01:00
README.md roles/jupyterhub/README.md: Typo in prominent link (Institutional FAQ) re: #2818 #2819 2021-08-24 16:28:28 -04:00

JupyterHub programming environment with student Notebooks

Secondary schools may want to consider JupyterHub to integrate coding with dynamic interactive graphing — A New Way to Think About Programming — allowing students to integrate science experiment results and program output within their own blog-like "Jupyter Notebooks."

  • Jupyter Notebooks are widely used in the scientific community:
  • Students create their own accounts on first use — e.g. at http://box.lan/jupyterhub — just as if they're logging in regularly (unfortunately the login screen doesn't make that clear, but the teacher does not need to be involved!)
    • A student can then sign in with their username and password, to gain access to their files (Jupyter Notebooks).
    • The teacher should set and protect JupyterHub's overall Admin password, just in case. As with student accounts, the login screen doesn't make that clear — so just log in with username Admin using any password that you want to become permanent.
  • Individual student folders are created in /var/lib/private/ on the Internet-in-a-Box (IIAB) server:
    • A student will only be able to see their own work — they do not have privileges outside of their own folder.
    • Students may upload Jupyter Notebooks to the IIAB server, and download the current state of their work via a normal browser.

Settings

Linux administrators please see /opt/iiab/jupyterhub/etc/jupyterhub/jupyterhub_config.py which originates from:

https://github.com/iiab/iiab/blob/master/roles/jupyterhub/templates/jupyterhub_config.py

Note that /opt/iiab/jupyterhub is a Python 3 virtual environment, that can be activated with the usual formula:

source /opt/iiab/jupyterhub/bin/activate

PAWS/Jupyter Notebooks for Python Beginners

While PAWS is a little bit off topic, if you have an interest in Wikipedia, please do see this 23m 42s video "Intro to PAWS/Jupyter notebooks for Python beginners" by Chico Venancio, from 2021-06-01.

He explains PAWS as a "powerful Python execution environment http://paws.wmcloud.org [allowing] ordinary folks to write interactive scripts to work with Wikimedia content."

Known Issues