You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Install Jupyter within virtual environment
pip install jupyter
4. Launch Jupyter Notebook
# Option 1: Direct Launch (Not Recommended for Long Sessions)
jupyter notebook --no-browser --port=8888 --ip=0.0.0.0
# Option 2: Using Screen (Recommended for Long-Running Sessions)
screen -S jupyter_session
jupyter notebook --no-browser --port=8888 --ip=0.0.0.0
# Press Ctrl-A, then D to detach from screen# Use 'screen -r' to reattach
5. Connect from Local Machine
When Jupyter launches, it will print a URL that looks like:
http://localhost:8888/?token=some_long_token
Replace localhost with the remote machine's IP address
Example: http://123.456.789.10:8888/?token=some_long_token
Open this modified URL in your local web browser
6. Useful Screen Commands
# List active screen sessions
screen -ls
# Reattach to a detached session
screen -r session_name
# Kill a screen session
screen -X -S session_name quit
Security Recommendations
Always log out and close connections when not in use