Table of Contents
j2o
Converter from Jupyter to Org file format without any dependencies.
Without this package your only alternative is to use nbconver or pandoc with 164 dependencies just to be able to convert simple JSON format.
TODO: make reverse convrter.
Command line usage
usage: j2o myfile.ipynb [-w] [-j myfile.ipynb] [-o myfile.org]
Convert a Jupyter notebook to Org file (Emacs) and vice versa
positional arguments:
jupfile_ Jupyter file
options:
-h, --help show this help message and exit
-j JUPFILE, --jupfile JUPFILE
Jupyter file
-o ORGFILE, --orgfile ORGFILE
Target filename of Org file. If not specified, it will
use the filename of the Jupyter file and append .ipynb
-w, --overwrite Flag whether to overwrite existing target file.
For Linux add this line to ~/.bashrc
export PATH=$PATH:/home/youruser/.local/bin
How this works
- Loops through "cells".
- Extract "source"
- add Org header and tail around source ("#+begin_src python …", "#+end_src")
Info: Other useful projects
- p2j https://pypi.org/project/p2j/ https://github.com/remykarem/python2jupyter
- https://github.com/jkitchin/ox-ipynb
Info: Format of ipynb
JSON
{
cells: [
cell_type: "code/markdown",
source: ["\n","\n",""],
outputs: [{
text: ["\n", "\n"],
data: {
image/png: "base64....",
text/plain: "image description"}
}
]
],
metadata: {
kernelspec: {
language: "python"
}
}
}
features
- in markdown cells conversion: source blocks, ‘#’ to ‘*’.
- code cells: images
- Tested for nbformat: 4.2.
Metadata
Release files for j2o 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| j2o-0.0.7.tar.gz | 623.1 kB | Without provenance | Details for j2o-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| j2o-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for j2o-0.0.7-py3-none-any.whl |
Total release size: 629.3 kB
Release files / j2o-0.0.7.tar.gz
| Download URL | j2o-0.0.7.tar.gz |
|---|---|
| Size | 623.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea50b7ba453ed64fb69010dff7f630ebf843eedc091ad45365594bdd6ad35dfe
|
|
BLAKE2b-256 checksum How to use checksums |
33d50c9db4e3e8362a273f601b7a7f963f3284fcc7f902ea194f6f22cad225c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / j2o-0.0.7-py3-none-any.whl
| Download URL | j2o-0.0.7-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9b912a3dcd21e1ea722bb4f65e6620c8eb29708cbdfdb1b511bb65e347454d
|
|
BLAKE2b-256 checksum How to use checksums |
605e9d4fc56825a92f3ce25ff543f0e50f74630010838e7263ee8bbdc95cbedb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for j2o 0.0.7
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.