FB2NEP — How‑To & Sandbox (Colab/Jupyter)

Author

Gunter Kuhnle

Published

11 May 2026

This page shows you how to open and use the module notebooks in Google Colab (or locally in Jupyter). It includes direct links and easy to understand guidance. If you have never used Python before, you are in the right place.

2 How to open a notebook in Colab (step‑by‑step)

What is Colab? Colab is a hosted Jupyter Notebook service that requires no setup to use and provides free access to computing resources, including GPUs and TPUs. Colab is especially well suited to machine learning, data science, and education. Requires a Google account.

Right-clicking will open Colab in a new browser window.

  1. Click an Open in Colab button above. Colab will load the notebook from GitHub.
  2. At the top‑right, click Connect if it isn’t already connected. This starts a fresh, temporary Python session (a “runtime”).
  3. You may see a warning like “This notebook was not authored by Google.”
    • Click Run anyway. Our notebooks are plain text and safe to run.
  4. You might also see “Warning: This notebook requires permissions to run.”
    • Click Run anyway. Colab sandboxes code; nothing runs on your computer.
  5. To run a cell, click the small ▶ button on its left, or press Shift + Enter.
  6. To run every cell from top to bottom, go to Runtime → Run all.
  7. To save your own editable copy, go to File → Save a copy in Drive. You now have a personal copy you can edit freely.

2.1 Useful Colab options

  • Runtime → Restart runtime resets the session if things get stuck.
  • Runtime → Change runtime type (we use Python 3; no GPU needed).
  • File → Download lets you save the executed notebook as .ipynb or PDF.

3 How to open a notebook in Binder (step‑by‑step)

What is Binder? Binder turns a GitHub repository into a live, interactive Jupyter environment running in your browser. No account or login required — just click and go.

Note: Binder may take 1–2 minutes to start the first time, as it builds the environment. Your work is not saved between sessions — download your notebook if you want to keep it.

  1. Click an Open in Binder badge above. A new tab will open and Binder will begin building the environment.
  2. Wait for the progress bar to complete. You will see log messages scrolling — this is normal.
  3. Once loaded, the notebook will open automatically in Jupyter.
  4. To run a cell, click it and press Shift + Enter, or use the ▶ button in the toolbar.
  5. To run all cells, go to Cell → Run All in the menu.
  6. To save your work, go to File → Download as → Notebook (.ipynb) before closing. Binder sessions are temporary and do not persist.

3.1 Useful Binder notes

  • Session timeout: Binder sessions close after ~10 minutes of inactivity. Save your work regularly.
  • No GPU needed for these notebooks — the default Binder environment is fine.
  • Slow start? This is normal on first launch. Once running, the notebook behaves identically to any other Jupyter environment.

4 Working locally in Jupyter (optional)

If you prefer local execution: 1. Install Anaconda or Miniconda, then open Jupyter Lab.
2. Download the .ipynb files from GitHub and open them in Jupyter Lab.
3. Run cells with Shift + Enter as in Colab.


5 Troubleshooting

  • ModuleNotFoundError (e.g. statsmodels): in Colab, run the cell that starts with !pip install ..., then Runtime → Restart runtime, and re‑run the code. In Binder, all packages are pre-installed — if a module is missing, try Kernel → Restart.
  • Kernel crashed / out of memory: restart the runtime. Don’t open huge datasets in this sandbox.
  • Long‑running cells: click the stop icon (■) next to the cell number, or Runtime → Interrupt execution (Colab) / Kernel → Interrupt (Binder).
  • Binder won’t load: try refreshing the page. If it continues to fail, use Colab as a fallback.

6 What you will learn here

  • How to run Python cells safely in the cloud (Colab or Binder).
  • How to make small edits and immediately see their effect.
  • How to generate simple synthetic data and make basic plots & analyses you’ll reuse in FB2NEP.

Now jump into the Introduction Notebook first, then play in the Playground.