Skip to content

Commit

Permalink
fine grained control of paths 4
Browse files Browse the repository at this point in the history
  • Loading branch information
none committed Jul 25, 2024
1 parent 63e6437 commit 9cf3898
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
55 changes: 28 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@

# Table of Contents

1. [j2o](#org0ada202)
2. [Command line usage](#orgcd3c96d)
3. [Other useful projects](#org4772b96)
4. [Review of format for ipynb](#org9e2dc55)
5. [How it works](#org4355db8)
6. [features](#org2ac1c27)
1. [j2o](#orgbacc8a7)
2. [Command line usage](#orgc774cb4)
3. [How this works](#org1bf3c7a)
4. [Info: Other useful projects](#orgcb52261)
5. [Info: Format of ipynb](#orge84f6b3)
6. [features](#orge5a8edc)

\![badge](![img](https://github.com/Anoncheg1/j2o/actions/workflows/python-test.yml/badge.svg?event=push))
\![badge](![img](https://github.com/Anoncheg1/j2o/actions/workflows/python-publish.yml/badge.svg?event=release))

<a id="org0ada202"></a>

<a id="orgbacc8a7"></a>

# j2o

Converter from Jupyter to Org file format without any dependencies.

I don't want to install Jupyter core and nbconver or pandoc with 164
dependencies just to be able to convert simple JSON format, that is
why I just wrote coverter from scratch.

Tested for nbformat: 4.2.
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.

<https://pypi.org/project/j2o/>


<a id="orgcd3c96d"></a>
<a id="orgc774cb4"></a>

# Command line usage

Expand All @@ -47,17 +47,26 @@ TODO: make reverse convrter.
-w, --overwrite Flag whether to overwrite existing target file.


<a id="org4772b96"></a>
<a id="org1bf3c7a"></a>

# How this works

1. Loops through "cells".
2. Extract "source"
3. add Org header and tail around source ("#+begin\_src python &#x2026;", "#+end\_src")


<a id="orgcb52261"></a>

# Other useful projects
# Info: Other useful projects

- p2j <https://pypi.org/project/p2j/> <https://github.com/remykarem/python2jupyter>
- <https://github.com/jkitchin/ox-ipynb>


<a id="org9e2dc55"></a>
<a id="orge84f6b3"></a>

# Review of format for ipynb
# Info: Format of ipynb

JSON

Expand All @@ -81,19 +90,11 @@ JSON
}


<a id="org4355db8"></a>

# How it works

1. Loops through "cells".
2. Extract "source"
3. add Org header and tail around source ("#+begin\_src python &#x2026;", "#+end\_src")


<a id="org2ac1c27"></a>
<a id="orge5a8edc"></a>

# features

- in markdown cells conversion: source blocks, ‘#’ to ‘\*’.
- code cells: images
- Tested for nbformat: 4.2.

2 changes: 2 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![badge](https://github.com/Anoncheg1/j2o/actions/workflows/python-test.yml/badge.svg?event=push)
![badge](https://github.com/Anoncheg1/j2o/actions/workflows/python-publish.yml/badge.svg?event=release)
* j2o
Converter from Jupyter to Org file format without any dependencies.

Expand Down

0 comments on commit 9cf3898

Please sign in to comment.