Skip to content

Instantly share code, notes, and snippets.

This page is a curated collection of Jupyter/IPython notebooks that are notable for some reason. Feel free to add new content here, but please try to only include links to notebooks that include interesting visual or technical content; this should not simply be a dump of a Google search on every ipynb file out there.

Important contribution instructions: If you add new content, please ensure that for any notebook you link to, the link is to the rendered version using nbviewer, rather than the raw file. Simply paste the notebook URL in the nbviewer box and copy the resulting URL of the rendered version. This will make it much easier for visitors to be able to immediately access the new content.

Note that Matt Davis has conveniently written a set of bookmarklets and extensions to make it a one-click affair to load a Notebook URL into your browser of choice, directly opening into nbviewer.

@RyanGreenup
RyanGreenup / rstudio-in-a-chroot.md
Last active September 17, 2023 13:53
Rstudio in a chroot

Create a location for

doas zfs create -o compression=lzf tank/chroots
doas zfs create -o compression=lzf tank/chroots/fedora
cd /tank/chroots/fedora
wget 'https://dl.fedoraproject.org/pub/fedora/linux/releases/38/Container/x86_64/images/Fedora-Container-Base-38-1.6.x86_64.tar.xz'
tar xvpf Fedora-Container-Base-38-1.6.x86_64.tar.xz 

# Do all the mounting (or `emerge arch-chroot`
@RyanGreenup
RyanGreenup / install-and-run-gpt4all-with-docker.md
Created October 17, 2023 02:12
Install and Run gpt4all with Docker

Install and Run gpt4all with Docker

Create directory and files

mkir gpt4all
cd gpt4all
vim -O Dockerfile docker-compose.yml
@RyanGreenup
RyanGreenup / embed-backlinks-on-mediawiki-page.md
Last active July 20, 2024 07:48
Embed Backlinks on Mediawiki Page

Examples for SDM

#!/usr/bin/env Rscript


# Instll the Lock 5 Data
# install.packages("Lock5Data")
library(Lock5Data)
@RyanGreenup
RyanGreenup / wk5_bootsrap.md
Created April 4, 2024 05:59
Week 5 Bootstrap

Notes

Main Bootstrap

## This is my population
n = 30
pop <- iris[,1]
hist(pop)
@RyanGreenup
RyanGreenup / wk6_pvals.r
Created April 11, 2024 04:40
How to calculate P Values in R
library(Lock5Data)
library(tidyverse)
dplyr::glimpse(Lock5Data::NutritionStudy)
## Get X
table(X <- Lock5Data::NutritionStudy$Smoke)
## Encode as "Does this person Smoke
table(X <- (X == "Yes"))
## How many people smoke