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

  1. print modules versions needed for the environment
  2. paste output into created “requirements.txt” file
  3. upload both .txt and .ipynb files to repository
  4. use mybinder.org to link/use repository with JupyterLab
  5. 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

image

STEP 4

STEP 5 example

Binder

Reference
https://stackoverflow.com/questions/40428931/package-for-listing-version-of-packages-used-in-a-jupyter-notebook https://www.youtube.com/watch?v=owSGVOov9pQ


<
Previous Post
Exploratory Analysis And Visualization
>
Next Post
Ocarina