Notebook Meet Binder
June 27, 2022
Welcome to the wonderful world of widgets.
Today’s widget is a guide on how to allow guests to interact with Jupyter Notebook files in situ.
STEPS
- print modules versions needed for the environment
- paste output into created “requirements.txt” file
- upload both .txt and .ipynb files to repository
- use mybinder.org to link/use repository with JupyterLab
- copy-paste generated launch-binder-SVG-button embed link to share
STEP 1 example
# import environment modules
import ipywidgets
import seaborn
import matplotlib.pyplot
print('\n'.join(f'{m.__name__}=={m.__version__}' for m in globals().values() if getattr(m, '__version__', None)))
Example Output
STEP 4
STEP 5 example
Reference
https://stackoverflow.com/questions/40428931/package-for-listing-version-of-packages-used-in-a-jupyter-notebook
https://www.youtube.com/watch?v=owSGVOov9pQ