Skip to content

Insights from the learning discussion. View the Jupyter Notebook on GitHub, on Binder, or - with an interactive ipywidget & chart - on Voilà

Notifications You must be signed in to change notification settings

denisecase/datafun-03-discussion

Repository files navigation

datafun-03-discussion

Open In Colab Binder badge


Set Up Your Environment

In VS Code, open a Terminal / New Terminal and run the following command one at a time. This will:

  1. update important packages in our default Python
  2. create a virtual environment in the .venv folder
  3. activate the virtual environment
  4. install an upgraded version of pip in our virtual environment
  5. install upgraded versions of the packages listed in requirements.txt
  6. 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)"

Interactive Notebooks in VS Code


Run The Code

  1. Run the script from the command line with python learning.py.
  2. 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.

Exploratory Data Analysis in Daily Life

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 [Voila.
  • Could you add a third chart - or other analysis - to help gain insights?

🌟Publishing (Deploying) Interactive Notebooks with Google Colab

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.


Publishing (Deploying) With Binder and Voila

Binder hosts only static notebooks. Voila builds on Binder and enables interactive widgets.
Hit the rate limits, and want to keep it free.

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.


Published to Colab

Publish to Google Colab

Examples

Voila App

Initial wordcharts

About

Insights from the learning discussion. View the Jupyter Notebook on GitHub, on Binder, or - with an interactive ipywidget & chart - on Voilà

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published