Why?
- See output of Python changes
How
- Create a Jupyter notebook
- Make my changes in the codebase
- Import the changed files in the notebook
- Inspect the output in the notebook
- If I make significant code changes, run
Kernel > Restart and clear output
to refresh the notebook
In VS Code
- “Jupyter variables” panel
- can use
pdb
in notebooks as well - In VS Code, add
#%%
to a.py
file to run lines as a Jupyter cell - Jupyter Notebooks in VS Code Extension NEW in 2022 - Tutorial Introducing Kernels, Markdown, & Cells • Kris Jordan 📺
- How VSCode has leaped forward as Jupyter Notebook Editor • Tino T. Herden 📖
- Working with Jupyter code cells in the Python Interactive window • VS Code Docs 📚
- VSCode’s Python Interactive mode is AMAZING! • Jack of Some 📺
I’ve gone from serial Jupyter Notebook user to someone that almost never uses them and it’s all thanks to VSCode’s interactive mode for Python. Check it out!
- How VSCode has leaped forward as Jupyter Notebook Editor | by Tino T. Herden | Towards Data Science
- Working with Jupyter code cells in the Python Interactive window • VS Code
- Jupyter Notebooks in VS Code Walkthrough - YouTube • VS Code
- Jupyter Notebooks in VS Code - YouTube • Very Academy
- Setting up Jupyter Notebook in Visual Studio Code - YouTube • Douglas Starnes
- VS Code tips — Debugging Jupyter notebooks - YouTube • Use ‘Debug Cell’ in VS Code to debug Python code cells in notebooks. Step through code, inspect variables, and even use the debug console to evaluate expressions!
- 🔴 Learn Data Science from SCRATCH (with GitHub CoPilot) - YouTube • VS Code
In Jupyter Lab
- Keyboard shortcuts:
<s-tab>
= show hover docs
- jupyterlab-contrib/jupyterlab-vim • Vim notebook cell bindings for JupyterLab.
- How to enable VIM mode for editing notebooks in jupyter-lab? - Stack Overflow
Jupytext
- Jupytext: The hack-free way to use Jupyter notebooks with git | nikvdp • Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
- Jupytext documentation
- jupytext/docs/faq.md
- jupytext/docs/tutorials.md
Hex
- A notebook alternative to Jupyter