This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |