Skip to content

Run Jupyter Notebook #21

Run Jupyter Notebook

Run Jupyter Notebook #21

Workflow file for this run

name: Run Jupyter Notebook
on:
schedule:
- cron: '0 16 * * *' # Runs every day at 4 PM UTC
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
execute-notebook:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Specify the Python version you need
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install nbconvert jupyter ipykernel
- name: Set up Jupyter kernel
run: |
python -m ipykernel install --user --name python3 --display-name "Python 3"
- name: Execute notebook
run: |
jupyter nbconvert --to notebook --execute barcelonadori_map.ipynb --output updated_barcelonadori_map.ipynb