Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

166 Commits

Repository files navigation

Binder

Lectures in Scientific Computing in Python

This repository contains all lectures from the course Scientific programming in Python that is part of the Cognitive Science program at the University Osnabrück. Each lecture is accompanied by a Jupyter notebook that explains each topic with a combination of code and text. You can view the notebooks directly on GitHub or run them locally and play with the code. If you do not want to install anything, click on the Binder logo above to run all the notebooks in a ready to use environment in the cloud.

Recordings

All lecture recordings from 2018 and 2019 can be viewed on Youtube and on the Opencast platform (which is available only to students of the University of Osnabrück).

LectureYouTube 2018Youtube 2019Opencast 2018Opencast 2019
IntroductionViewPart 1, Part 2ViewPart 1, Part 2
Basic PythonViewPart 1, Part 2ViewPart 1, Part 2
Advanced PythonViewPart 1, Part 2ViewPart 1, Part 2
NumpyViewPart 1, Part 2ViewPart 1, Part 2
MatplotlibViewPart 1, Part 2ViewPart 1, Part 2
Basic PandasViewPart 1, Part 2ViewPart 1, Part 2
Pandas: Cleaning DataViewPart 1, Part 2ViewPart 1, Part 2
Pandas: Analyzing Data & Time SeriesViewPart 1, Part 2ViewPart 1, Part 2
Debugging in PycharmViewView
Statistical Visualization (ggplot, seaborn)ViewPart 1, Part 2ViewPart 1, Part 2
Statistical Modeling (statsmodels)ViewPart 1, Part 2ViewPart 1, Part 2
Experiments (expyriment)ViewPart 1, Part 2ViewPart 1, Part 2
Study: A to Z, Scikit-Learn, ParallelismViewView
Interactive Visualization (Widgets, Altair)ViewView
Data Exploration, Performance-OptimizationViewView

To view the Jupyter Notebooks corresponding to the videos of the respective years, access this repository's state from 2018 or 2019, respectively. To access the videos in the better Opencast-player, make sure you're logged into Myuos before clicking the link.

Installation

Create a virtual Python environment, name e.g. scientific, for example using conda.

$ conda env create -f environment.yml

Activate the environment

$ conda activate scientific

you might see some error like your shell has not been set up to use conda activate. Follow the instructions given in your shell to make it work.

then start JupyterLab

$ jupyter lab

JupyterLab should open in your browser. From there you can navigate to the notebooks and interact with them.

Contributing

Before committing changes, run the whole notebook from top to bottom using (for fish)

$ env RUNALL=1 jupyter nbconvert --execute --allow-errors --inplace lecture.ipynb

for bash

$ export RUNALL=1 jupyter nbconvert --execute --allow-errors --inplace lecture.ipynb

To make new interactive exercises install jupyter-solutions and set up as teacher, by setting

c.JupyterLabRmotrSolutions.role = "teacher"

in the repositories jupyter_notebook_config.py.

Only use markdown headers to structure the lectures. Numbering will be automatically handled by the jupyterlab-toc extension. Also use markdown to talk about the content of the lecture and the next cells. Use comments only if you want to highlight something in a specific line of code. If you write comments, write them in full sentences.

Use nbdime to make working with notebooks and git easier

pip install nbdime
nbdime config-git --enable 

Acknowledgments

About

Lectures for the course "Scientific Programming in Python" at Osnabrück University

Topics

Resources

Stars

52 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages