Since .ipynb focus on testing, I need to migrate from .ipynb to .py when I want to run python .py file.
I’m looking for a Jupyterlab extension that support python project and python script directly. Any jupyterlab extension that supports the need both?
I can’t exactly tell what you’re tasking for, but some approaches to improving the authoring and use of python notebooks, scripts, and modules:
-
jupyterlab-lsp(when paired with a python language server) would improve the text editing experience for both.ipynband.pyfiles -
importnbwould allow you toimport.ipynbfiles almost anywhere you can use.pyfiles, even in distributed packages
Also:
- Elyra provides a little bit expanded Python editor among other features (it has jupyterlab-lsp included)
- jupytext comes with ipynb → py conversion built-in, see Import Existing Python Scripts Into Jupyter Notebook · Issue #10848 · jupyterlab/jupyterlab · GitHub (I made a GIF for conversion the other way but jupytext works both ways)
Well… I was surprised when I saw Jupyterlab at the first sight.
In short.I hope I can use jupyterlab to replace pycharm on my cloud
vscode can both open and run .ipynb and .py files. However, for me it’s difficult to replace one thing with another so I ended up using both vscode and jupyterlab together.
Yes: See jupytext intro from PyCon 2020. jupytext provides .ipynb <-> .py synchronisation (hence searchability) and version control.
It’s so good, it should be part of Jupyterlab!