- 🌟 Google Colab Interactive Notebook
- GitHub Repository
- GitHub Repository: Notebook
- Binder Notebook
- Voila Interactive Notebook
In VS Code, open a Terminal / New Terminal and run the following command one at a time. This will:
- update important packages in our default Python
- create a virtual environment in the
.venv
folder - activate the virtual environment
- install an upgraded version of pip in our virtual environment
- install upgraded versions of the packages listed in requirements.txt
- set up the ipykernel to run Jupyter Notebooks locally in our .venv virtual environment
The commands are for Windows and PowerShell. Slight adjustments may be needed for other environments. Click Yes when VS Code asks about the environment. Allow some time for each command to complete before running the next command.
Note: If python
doesn't work, replace it with py
or python3
in the commands.
python -m pip install --upgrade pip ipykernel jupyterlab
python -m venv .venv
.venv\Scripts\Activate
python -m pip install --upgrade pip
python -m pip install --upgrade -r requirements.txt
python -m ipykernel install --user --name .venv --display-name "Python (.venv)"
- Run the script from the command line with
python learning.py
. - Open the notebook learning.ipynb. In the upper right, click Select Kernel / Python Environment, then choose the Python (.venv) from the menu. Once you have a kernel, run all the cells.
We asked: Which learning resources do you prefer/find most effective?
- One way to gain insight is to turn the discussion into a word cloud as we did in learning.py.
- Another is to chart the most common words as we did in the learning.ipynb notebook available in [.
- Could you add a third chart - or other analysis - to help gain insights?
Google Colab makes it easy. External data files should be hosted (e.g. on Google Drive) and accessed via a URL. To avoid that, we just added the data to the notebook directly.
- Read PUBLISH_TO_COLAB.md.
Binder hosts only static notebooks.
Voila builds on Binder and enables interactive widgets.
Hit the rate limits, and want to keep it free.
- Read PUBLISH_TO_BINDER.md.
- Read PUBLISH_WITH_VOILA.md.
Binder Rate Limits: Rate limits of 100 container image requests per six hours for anonymous usage, and 200 container image requests per six hours for free Docker accounts are in effect. Image requests exceeding these limits will be denied until the six hour window elapses.