from-notebook-1.0.0
توضیحات
Small Python utility for importing functions, classes, and constants from .ipynb files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | from-notebook-1.0.0 |
| نام | from-notebook |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Eli Sohl |
| ایمیل نویسنده | elisohl@gmail.com |
| آدرس صفحه اصلی | https://github.com/wootfish/from_notebook |
| آدرس اینترنتی | https://pypi.org/project/from-notebook/ |
| مجوز | MIT |
Small Python utility for importing functions, classes, and constants from .ipynb files. A few other packages offer to provide similar functionality; I wrote this because none of them worked on the first try for me.
Notebooks can be imported from other notebooks or from normal Python scripts. The target notebook is assumed to be located in the current working directory.
You just import the notebook as if it was a submodule of ``from_notebook``. So to import definitions from ``example.ipynb``, any of the following will work:
``import from_notebook.example``
``import from_notebook.example as example``
``from from_notebook.example import example_function, ExampleClass``
No notebook code is executed except for imports, ``class`` and ``def`` statements, and ``SNAKE_CAPS = ...`` assignments. All of these will be executed, so make sure they don't set off any unwanted side effects.
نحوه نصب
نصب پکیج whl from-notebook-1.0.0:
pip install from-notebook-1.0.0.whl
نصب پکیج tar.gz from-notebook-1.0.0:
pip install from-notebook-1.0.0.tar.gz