Skip to main content

Clase rápida para trabajar con notebooks

Project description

Jupyter Functions Exec

PyPI version License: MIT Rust

A high-performance Python package built in Rust that allows you to extract and execute functions directly from Jupyter Notebooks (.ipynb files).

Installation

pip install jupyter-functions-exec

API Reference

JupyterFunctions(notebook_path: str)

Creates a new instance by parsing a Jupyter notebook.


exec_function(name: str, /, *args, **kwargs) -> Any

Executes a function from the notebook with the provided arguments and returns the result.


return_function(name: str) -> Callable

Returns a function object that can be called later.


exists_function(name: str) -> bool

Checks if a function exists in the notebook.


functions_names() -> List[str]

Returns a list of all function names found in the notebook.


necessary_imports() -> List[str]

Returns all import statements found in the notebook.

License

MIT License - see the LICENSE file for details.

Author

Oscar - oscarortegarios@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_functions_exec-0.2.1-cp314-cp314-manylinux_2_34_x86_64.whl (989.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

File details

Details for the file jupyter_functions_exec-0.2.1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jupyter_functions_exec-0.2.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 446b3993e9103098e36120ff7fb70b5b0978ab650a7af5dd74defb46a5181ebb
MD5 411b02d735dd60f8d161dee1d66fa2a1
BLAKE2b-256 f01bd0b3f3d3ea87af7f05b8a052ae1fd9d5e0f76e1a166f2af2334c18c06a9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.2.1-cp314-cp314-manylinux_2_34_x86_64.whl:

Publisher: python-publish.yml on Osc-Ort/jupyter_functions_exec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page