Linux Jupyter Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki

Linux Jupyter Guide

Complete beginner-friendly guide to Jupyter on Linux, covering Arch Linux, CachyOS, and other distributions including installation, notebooks, and data science setup.


Table of Contents

  1. Jupyter Installation
  2. Jupyter Notebooks
  3. JupyterLab
  4. Kernels
  5. Troubleshooting

Jupyter Installation

Install Jupyter

Arch/CachyOS:

# Install Jupyter
pip install jupyter

# Or system package
sudo pacman -S jupyter-notebook

Debian/Ubuntu:

sudo apt install jupyter-notebook

Fedora:

sudo dnf install python3-jupyter

Launch Jupyter

Start Jupyter:

# Launch Jupyter Notebook
jupyter notebook

# Or JupyterLab
jupyter lab

Jupyter Notebooks

Create Notebook

New notebook:

  1. Jupyter opens in browser
  2. NewPython 3
  3. Start coding

Notebook Cells

Cell types:

  • Code: Execute code
  • Markdown: Documentation
  • Raw: Raw text

JupyterLab

Install JupyterLab

Install:

# Install JupyterLab
pip install jupyterlab

# Launch
jupyter lab

JupyterLab Features

Features:

  • File browser: Navigate files
  • Terminal: Integrated terminal
  • Extensions: Add functionality

Kernels

Install Kernels

Python kernel:

# Already included with Jupyter
# Python kernel is default

Other Kernels

Additional kernels:

# R kernel
pip install rpy2

# Julia kernel
pip install IJulia

Troubleshooting

Jupyter Not Starting

Check installation:

# Check Jupyter
jupyter --version

# Reinstall if needed
pip install --upgrade jupyter

Browser Not Opening

Manual access:

# Get URL from terminal
# Copy URL to browser
# Usually: http://localhost:8888

Summary

This guide covered Jupyter installation, notebooks, and JupyterLab for Arch Linux, CachyOS, and other distributions.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.