Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Statistical Learning with Python

Online usage (recommended)

Course materials for the psy112 seminar of the Neurocognitive Psychology Master's course at the University of Oldenburg. The content should primarily be accessed from the online book: Jupyter Book Badge

Local usage

Install the dependencies once:

cd <path/to/psy112>
pip install -r requirements.txt

Then start a live preview server, which prints a link (usually http://localhost:3000):

jupyter book start --execute

The --execute flag runs the code cells. Without it the preview builds much faster but all outputs stay empty, which is often what you want while editing text.

To produce the static site that gets deployed to GitHub Pages:

jupyter book build --html --execute

This writes the site to _build/html. Executed outputs are cached in _build/execute, so subsequent builds are fast.

Note

A build without --execute overwrites the site with output-free pages. Keep the flag on whenever you want the figures.

The .ipynb notebooks for the exercises are located in the book/ folder and can either be opened locally or through Google Colab.

Repository layout

Path Purpose
myst.yml Book configuration and table of contents
book/ All chapters, exercises, solutions and figures
book/*/quiz/ JSON question banks for jupyterquiz / jupytercards
_static/custom.css Theme overrides (dark-mode fixes for the quiz widgets)
.github/workflows/deploy.yml Builds and publishes the book on every push to main

Requirements

The book is built with Jupyter Book 2, which is powered by MyST. Jupyter Book 2 bundles its own Node runtime, so only Python needs to be installed.

About

Course materials for psy112 - Statistical Learning

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages