Skip to main content

Convert jupyter

This project help convert jupyter flie. It let:

  • convert .ipynb to .py file
  • convert .py to .ipynb file
  • clean output jupyter

autors

Bartłomiej Chwiłkowski (github: chwilko)

Usage:

python3 -m convert_jupyter [options] <input_file>

commands:

  • jupyter2py Convert jupyter file to python file.
  • py2jupyter Convert python file to jupyter file.
  • clean Clean set jupyter file outputs.
  • clean_all Clean all jupyter files outputs from the set folder and child folders

input_file -- name of input file to convert or clean.

General options:

  • -o, --output Set the output file name. By default, it is the input file name with a valid extension.
  • -i, --input Set input file directly.
  • -c, --command Set command directly.
  • -f, --force If file with output name exists overwrite them. By default raise error.
  • -h, --help Show help and exit.
  • -V, --version Show version and exit.

Structure

convert_jupyter: - file with functions

tests: - tests

Functions

jupyter2py(f_in_name: str, f_out_name: Union[str, None] = None, force: bool = False)

  • Convert jupyter file f_in_name to python file f_out_name.

py2jupyter(f_in_name: str, f_out_name: Union[str, None] = None, force: bool = False)

  • Convert python file f_in_name to jupyter file f_out_name.

clean(path: str)

  • Function clean jupyter file output.

clean_all(path: str)

  • The function recursively finds all jupyter files and clears their output.

Licence

MIT

Metadata

Release files for convert-jupyter 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for convert-jupyter 1.0.3
File Size Uploaded Provenance Actions
convert_jupyter-1.0.3.tar.gz 77.4 kB Without provenance Details for convert_jupyter-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for convert-jupyter 1.0.3
File Interpreter ABI Platform Actions
convert_jupyter-1.0.3-py3-none-any.whl Python 3 none any Details for convert_jupyter-1.0.3-py3-none-any.whl

Total release size: 84.0 kB

Release files / convert_jupyter-1.0.3.tar.gz

Download URL convert_jupyter-1.0.3.tar.gz
Size 77.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b2565f6acdb189d95c78a62e74b4f8dedfff48ed43522fd7452edae3db771a63
BLAKE2b-256 checksum
How to use checksums
1e86dbb68aa89bce6bd98dd3a73b0fc5fdbc940493279e48d300fa8dd23e8131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / convert_jupyter-1.0.3-py3-none-any.whl

Download URL convert_jupyter-1.0.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30d77a39e7c78168019873114268e69dde04d0e736e0dd5774a81a07047fccc0
BLAKE2b-256 checksum
How to use checksums
c005399951033ea9c2f6fcbe82426e817a1cc5d22410ce9a0502577c1b88cd6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for convert-jupyter 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page