News for hackers. Stuff that matters.
Re:Ask HN: Is there a Jupyter Notebook for terminal/shell by pizza on Wednesday January 18, 2023 @01:54AM (#34424104)
You could use a jupyter notebook for this

Side-note: is the inverse of this available? E.g. open a jupyter notebook from in the middle of a python script

Re:Ask HN: Is there a Jupyter Notebook for terminal/shell by iamlucaswolf on Wednesday January 18, 2023 @04:23AM (#34424889)
Sorta-kinda: VSCode lets you execute code from regular Python files in a Jupyter session [1] by demarcating code cells with "# %%"

[1] https://code.visualstudio.com/docs/python/jupyter-support-py...

Re:Ask HN: Is there a Jupyter Notebook for terminal/shell by leplen on Wednesday January 18, 2023 @05:26AM (#34425197)
I use jupytext for this. For the cost of some header boilerplate I have python code that is seamlessly mirrored as a notebook.