What are Jupyter Notebooks?
Jupyter notebooks are interactive documents that combine code, visualizations, and narrative text. They’re the standard tool for data science, research, and exploratory analysis. In Alph, notebooks are first-class citizens with enhanced features:- AI-powered code generation
- Real-time collaboration
- Cloud execution
- GitHub synchronization
- Semantic search and discovery
Creating a Notebook
1
Navigate to Notebooks
From your organization dashboard, click Notebooks in the sidebar
2
Create new notebook
Click the New Notebook button and provide:
- Title: A descriptive name
- Visibility: Private or Public
- Tags (optional): For organization and discovery
3
Start editing
Your new notebook opens in the editor with an empty code cell ready to go
The Notebook Editor
Alph’s notebook editor provides a powerful, modern interface for working with Jupyter notebooks.Key Components
- Cell Editor
- AI Panel
- Toolbar
- Cell Outputs
CodeMirror-powered editing with:
- Syntax highlighting for Python, R, Julia, and more
- Intelligent autocomplete
- Code formatting and linting
- Vim mode support (enable in settings)
- Multi-cursor editing
- Code cells: Execute Python/R/Julia code
- Markdown cells: Rich text, images, LaTeX math
Working with Cells
Adding Cells
Add new cells in several ways:- Click the + button between cells
- Use keyboard shortcuts:
A(above) orB(below) in command mode - AI generation: Click + AI to generate cells with AI
Cell Modes
Cells have two modes:Edit Mode
Active when you’re typing in a cell
- Green border indicator
- Cursor visible in cell
- Type to edit content
- Press
Escto exit
Command Mode
Active for cell-level operations
- Blue border indicator
- Navigate with arrow keys
- Execute shortcuts (run, delete, etc.)
- Press
Enterto edit
Executing Cells
Run code cells to see results:- Single cell: Click ▶️ or press
Shift + Enter - All cells: Click Run All in toolbar
- Selected cells: Select multiple and click Run Selected
Code execution requires a connected kernel. See Notebook Execution for details.
Organizing Cells
Keep notebooks organized:- Reorder: Drag cells using the handle on the left
- Cut/Copy/Paste: Use toolbar buttons or shortcuts
- Merge: Select multiple cells and merge
- Split: Split cell at cursor position
Markdown Support
Markdown cells support rich formatting:Text Formatting
Lists and Tables
LaTeX Math
Inline math:$E = mc^2$
Block math:
Code Blocks
Notebook Metadata
Each notebook stores metadata:- Title and description
- Author and creation date
- Tags for categorization
- Visibility settings
- Kernel information
- View count and engagement
Keyboard Shortcuts
Master these shortcuts for efficient editing:Command Mode
| Shortcut | Action |
|---|---|
Enter | Enter edit mode |
A | Insert cell above |
B | Insert cell below |
D D | Delete cell |
M | Change to markdown |
Y | Change to code |
Shift + ↑/↓ | Select multiple cells |
Edit Mode
| Shortcut | Action |
|---|---|
Esc | Enter command mode |
Shift + Enter | Run cell and select below |
Ctrl/Cmd + Enter | Run cell |
Alt + Enter | Run cell and insert below |
Tab | Code completion |
Autosaving
Alph automatically saves your notebook:- Every 2 minutes while editing
- After cell execution
- When you navigate away
Ctrl/Cmd + S
Best Practices
Use descriptive markdown
Use descriptive markdown
Add markdown cells to explain your thought process, document assumptions, and describe results. This helps both human readers and AI assistants understand your work.
Organize logically
Organize logically
Structure notebooks with clear sections:
- Introduction/objectives
- Data loading and preparation
- Analysis and modeling
- Results and conclusions
Keep cells focused
Keep cells focused
One logical operation per cell makes notebooks easier to understand and debug. Avoid giant cells that do many things.
Run cells in order
Run cells in order
Ensure your notebook runs from top to bottom without errors. This makes it reproducible and shareable.
Use tags effectively
Use tags effectively