Jupyter Notebook Guide
Accessing Jupyter Notebook
Internal Access (Institute Network):
- Server 01: http://p1.srils.cn/
- Server 02: http://p2.srils.cn/
External Access (From Internet):
- Server 01: http://p1.ext.srils.cn/
- Server 02: http://p2.ext.srils.cn/
Getting Started with Jupyter
- Login: Use your server credentials to log in
- Create Notebook: Click “New” → “Python 3” or “R”
- Write Code: Enter code in cells and press Shift+Enter to execute
- Save Work: Use Ctrl+S or File → Save
Jupyter Features
- Multiple Kernels: Python, R, Julia, and more
- Rich Output: Display plots, tables, and interactive widgets
- Markdown Support: Mix code with formatted text and equations
- Extensions: Additional functionality through extensions
- Collaboration: Share notebooks with team members
Example: Python Data Analysis
# Import libraries
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
# Load data
df = pd.read_csv('/data/sample_data.csv')
# Basic analysis
print(df.head())
print(df.describe())
# Create visualization
plt.figure(figsize=(10, 6))
plt.plot(df['date'], df['value'])
plt.title('Data Trends Over Time')
plt.xlabel('Date')
plt.ylabel('Value')
plt.show()
File Management in Jupyter
Accessing Files
Via Jupyter Interface:
- Use the file browser tab in Jupyter
- Navigate through directories using the web interface
- Upload files using the “Upload” button
Via Terminal (in Jupyter):
- Open a new terminal: New → Terminal
- Use standard Unix commands:
# List files
ls -la
# Navigate directories
cd /data/projects/
pwd
# Create directories
mkdir my_project
cd my_project
Data Storage Locations
See the File Storage Guide for detailed information about data storage locations and file management.
Troubleshooting Jupyter
Common Issues
Jupyter Not Loading:
# Check if Jupyter is running
ps aux | grep jupyter
# Restart Jupyter service (contact admin)
sudo systemctl restart jupyter
Kernel Issues:
- Kernel Not Starting: Try restarting the kernel (Kernel → Restart)
- Kernel Crashes: Check for memory issues or infinite loops
- Import Errors: Ensure required packages are installed
Performance Issues:
- Check system resources with
htoportop - Close unused notebooks
- Clear output from cells with large outputs
- Restart kernel to free memory
Getting Help
- Jupyter Documentation: https://jupyter.org/documentation
- Community Forums: https://discourse.jupyter.org/
- Server Administrator: Contact for technical issues
- Python/R Communities: Language-specific support forums
Back to: Apps Usage Guide
Need additional help? Contact the SRILS Server administration team for technical support.