Skip to content

Instantly share code, notes, and snippets.

@andrea-fantini
andrea-fantini / start_jupyter.sh
Created September 3, 2020 02:43
Simple bash script to start Jupyter notebooks server
#!/bin/bash
# Simple bash script to start automated launching jupyter notebook servers accessible via LAN
# Every time I want to start a notebook I need to activate my conda base environment, check the local IP, and launch the server with that IP. This script automates that process.
source $(conda info --base)/etc/profile.d/conda.sh
conda activate base
echo 'Activated environment :' $CONDA_DEFAULT_ENV
my_ip=$(hostname -I)
echo 'Local IP address :' $my_ip