oxinabox / ipynb2LiterateJulia

NBConverter stuff to convert Jupyter Notebooks in to Julia Literate.jl files (This is the opposite of Literate.jl)
MIT License
24 stars 3 forks source link

new nbconvert, template #8

Open PaulSoderlind opened 3 years ago

PaulSoderlind commented 3 years ago

This seems to fail on nbconvert 6.0.7:

jupyter nbconvert  --to script "$1" --config literate_config.py --template=literate.tpl 

(Same with --template-file=literate.tpl)

Skipping the --template=literate.tpl makes it run, but the markdown cells are dropped.

The changelog mentions changes to the template system

oxinabox commented 3 years ago

This is unfortunate. I am unlikely to fix this, though i would accept a PR. I don't actually use this, never have, i was just proving a point.

I think an option is to do something like: JuPyTer -> Pluto -> Literate

I think packages for that might exist

PaulSoderlind commented 3 years ago

Thanks for the reply. I'll have a look, but I doubt I can submit a useful PR (as I don't know much Python). With a bit of luck someone who does steps in. Who knows, this might actually be pretty simple to solve for someone with the right background.

kbarros commented 2 years ago

Perhaps the README can be updated to say that this was a proof of concept and is no longer expected to work?

kbarros commented 2 years ago

The package NBInclude provides a function nbexport(filename, notebookfile) that generates a .jl from a .pynb.