Skip to content

Commit

Permalink
include notebooks in website, replace anaconda link with micromamba i…
Browse files Browse the repository at this point in the history
…nstructions
  • Loading branch information
lkeegan committed Jan 30, 2025
1 parent a8a410f commit b66e852
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
python-version: 3.12
- run: pip install -r requirements.txt
- run: jupyter nbconvert *.ipynb --config jupyter_nbconvert_config.py
- run: mv *.html dist/.
- run: mv *.html *.ipynb dist/.
- uses: actions/upload-pages-artifact@v3
with:
path: "dist/"
Expand Down
12 changes: 9 additions & 3 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@
"source": [
"# Preparation\n",
"\n",
"You will need a computer with Python, Jupyter and pandas installed.\n",
"You will need a computer with Python, Jupyter and pandas installed. For example:\n",
"\n",
"If you don't already have this, I recommend installing [Anaconda](https://www.anaconda.com/download/success) (which contains all of this and more)."
"- install [micromamba](https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html#automatic-install)\n",
" - mac/linux: `\"${SHELL}\" <(curl -L micro.mamba.pm/install.sh)`\n",
" - windows powershell: `Invoke-Expression ((Invoke-WebRequest -Uri https://micro.mamba.pm/install.ps1 -UseBasicParsing).Content)`\n",
"- download [environment.yml](https://raw.githubusercontent.com/ssciwr/jupyter-data-exploration/refs/heads/main/environment.yml)\n",
"- `micromamba env create -f environment.yml`\n",
"- `micromamba activate jupyter-data-exploration`\n",
"- `jupyter lab`"
]
},
{
Expand Down Expand Up @@ -116,7 +122,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.13.1"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion pandas-real-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.0"
}
},
"nbformat": 4,
Expand Down
2 changes: 2 additions & 0 deletions pandas-toy-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,8 @@
"outputs": [],
"source": [
"fig, axs = plt.subplots(nrows=1, ncols=3, figsize=(16, 6))\n",
"fig.suptitle(\"OK asd asd\")\n",
"fig.tight_layout()\n",
"for ax, column in zip(axs, [\"Sex\", \"Wears glasses\", \"Eye colour\"]):\n",
" df[column].value_counts().plot.pie(ax=ax)\n",
"plt.plot()"
Expand Down
2 changes: 1 addition & 1 deletion python-jupyter-intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b66e852

Please sign in to comment.