Jupyter Notebook is a tool to run and write Python code easily, showing results right away, and allowing you to combine code, charts, notes, and files in one place. You can start Jupyter Notebook ...
NotebookLM is great, but its ties to Google are less so. Open Notebook could be the alternative you've been looking for.