I take note of Q&A discussing how to import .ipynb
from one notebook
to another. I won't be listing them here.
I also know I can use the magic %run
command to bring in variables/definitions/functions from another .ipynb
to my notebook. Obviously, noting its pitfalls mentioned here and here. Nonetheless, it remains versatile, allowing importing specific modules/sections only.
I'm fully aware that I can 'save as' .py
and import the exported .py
into my notebook
.
With the maintainer of nbimporter
, as of 2019:06, advising against the continued use except truly desired, that brings me to my question.
Concerning ipynb
(last 23 Oct 17) and import-ipynb
(last updated 22 Apr 22),
- Which one is recommended in terms of developers' maintenance?
- Which is recommended based on its functionality?
- What should one consider or look out for in opting for one of the two?
- Any other factor to give thought to?
With jupyterlab
and many platforms embracing/enabling notebook
, importing function from one ipynb
to another will continue for a considerable period of time to come.