Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new nbconvert, template #8

Open
PaulSoderlind opened this issue Jan 19, 2021 · 4 comments
Open

new nbconvert, template #8

PaulSoderlind opened this issue Jan 19, 2021 · 4 comments

Comments

@PaulSoderlind
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link

kbarros commented Oct 24, 2022

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

@kbarros
Copy link

kbarros commented Oct 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants