Skip to content

Instantly share code, notes, and snippets.

View walice's full-sized avatar

Alice Lépissier walice

View GitHub Profile
@walice
walice / index-github.ipynb
Created August 12, 2025 21:41
GitHub deployment section of a Jupyter notebook that is converted into a self-updating webpage. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / index.ipynb
Created August 12, 2025 21:09
Jupyter notebook used in a project combining notebook automation with web deployment to create self-maintaining data dashboards. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / index-automation.ipynb
Last active August 12, 2025 13:40
Crucial automation section of a Jupyter notebook that is converted into a self-updating webpage. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / ipynb-pandas.ipynb
Last active August 12, 2025 13:31
Web styling with pandas section of a Jupyter notebook that is converted into a self-updating webpage. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / index-gsheets.ipynb
Last active August 12, 2025 13:25
Google Sheets API section of a Jupyter notebook that is converted into a self-updating webpage. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / index-scraping.ipynb
Created August 12, 2025 13:12
Web scraping section of a Jupyter notebook that is converted into a self-updating webpage. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / index-preamble.ipynb
Last active August 12, 2025 21:57
Preamble of a Jupyter notebook that is converted into a self-updating webpage. Full tutorial available at: https://alicelepissier.com/programming/automated-notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@walice
walice / jupyterhub-setup-guide.txt
Created March 13, 2025 03:22
This is the concise summary of commands to run to set up the multi-user JupyterHub server with JupyerLab and RStudio. This won't make sense without the full tutorial posted at https://alicelepissier.com/programming/portable-training-platform.
ssh root@<droplet-ip>
sudo umount /mnt/volume_...
sudo mkdir /data && sudo mount /dev/sda /data
sudo nano /etc/fstab
sudo mount -a
sudo mkdir -p /data/home && sudo mv /home /data && sudo ln -s /data/home /home
@walice
walice / training
Created March 13, 2025 02:57
Contents of the Nginx configuration file for the multi-user JupyterHub. This file should be placed in `/etc/nginx/sites-available/training`.
server {
server_name <yourdomain.com>;
listen 80;
# RStudio Proxy
location /rstudio/ {
proxy_pass http://127.0.0.1:8787/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@walice
walice / jupyterhub.service
Created March 13, 2025 02:47
Configuration file needed to run JupyterHub as a service. The file should be placed in `/etc/systemd/system/jupyterhub.service`.
[Unit]
Description=JupyterHub Service
After=network.target
[Service]
User=root
ExecStart=/usr/local/bin/jupyterhub -f /etc/jupyterhub/jupyterhub_config.py
WorkingDirectory=/root
Restart=always
RestartSec=10