https://github.com/denisecase/datafun-03-discussion
Insights from the learning discussion. View the Jupyter Notebook on GitHub, on Binder, or - with an interactive ipywidget & chart - on Voilà
https://github.com/denisecase/datafun-03-discussion
binder ipywidget jupyter notebook python voila
Last synced: about 2 months ago
JSON representation
Insights from the learning discussion. View the Jupyter Notebook on GitHub, on Binder, or - with an interactive ipywidget & chart - on Voilà
- Host: GitHub
- URL: https://github.com/denisecase/datafun-03-discussion
- Owner: denisecase
- Created: 2023-01-31T13:58:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-01T21:31:41.000Z (almost 2 years ago)
- Last Synced: 2024-01-28T22:40:47.804Z (over 1 year ago)
- Topics: binder, ipywidget, jupyter, notebook, python, voila
- Language: Jupyter Notebook
- Homepage:
- Size: 1.62 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datafun-03-discussion
[](https://colab.research.google.com/github/denisecase/datafun-03-discussion/blob/main/learning.ipynb)
[](https://mybinder.org/v2/gh/denisecase/datafun-03-discussion/HEAD?labpath=learning.ipynb)
[](https://mybinder.org/v2/gh/denisecase/datafun-03-discussion/HEAD?urlpath=voila%2Frender%2Flearning.ipynb)- 🌟 [Google Colab Interactive Notebook](https://colab.research.google.com/github/denisecase/datafun-03-discussion/blob/main/learning.ipynb)
- [GitHub Repository](https://github.com/denisecase/datafun-03-discussion)
- [GitHub Repository: Notebook](./learning.ipynb)
- [Binder Notebook](https://mybinder.org/v2/gh/denisecase/datafun-03-discussion/HEAD?labpath=learning.ipynb)
- [Voila Interactive Notebook](https://mybinder.org/v2/gh/denisecase/datafun-03-discussion/HEAD?urlpath=voila%2Frender%2Flearning.ipynb)-----
## 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
1. create a virtual environment in the `.venv` folder
1. activate the virtual environment
1. install an upgraded version of pip in our virtual environment
1. install upgraded versions of the packages listed in [requirements.txt](./requirements.txt)
1. set up the ipykernel to run Jupyter Notebooks locally in our .venv virtual environmentThe 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.
```shell
python -m pip install --upgrade pip ipykernel jupyterlabpython -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 Code
1. Run the script from the command line with `python learning.py`.
2. Open the notebook [learning.ipynb](./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](./learning.py).
- Another is to chart the most common words as we did in the [learning.ipynb](./learning.ipynb) notebook available in [.
- 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.- Read [PUBLISH_TO_COLAB.md](./PUBLISH_TO_COLAB.md).
-----
## 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.- Read [PUBLISH_TO_BINDER.md](./PUBLISH_TO_BINDER.md).
- Read [PUBLISH_WITH_VOILA.md](./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.-----
## Published to Colab

## Examples

