We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nbconvert requires a directory in ~/.local/share/jupyter/nbconvert/templates/ with two files that describe the template actions.
~/.local/share/jupyter/nbconvert/templates/
Need to rewrite the nbconvert script to handle this for future versions
conf.json
{ "base_template": "base", "mimetypes": { "text/x-python": true } }
index.py.j2
{%- extends 'null.j2' -%} ## set to python3 {%- block header -%} #!/usr/bin/env python3 # coding: utf-8 {% endblock header %} ## remove cell counts entirely {% block in_prompt %} {% if resources.global_content_filter.include_input_prompt -%} {% endif %} {% endblock in_prompt %} ## remove markdown cells entirely {% block markdowncell %} {% endblock markdowncell %} {% block input %} {{ cell.source | ipython2python }} {% endblock input %} ## remove magic statement completely {% block codecell %} {{'' if "get_ipython" in super() else super() }} {% endblock codecell%}
The text was updated successfully, but these errors were encountered:
More information found here
and here
Sorry, something went wrong.
And is resolved here
rewrite python script to simplify?
write bash script that is dead simple or just start using !jupyter-nbconvert --to python --template my_template foo.ipynb
!jupyter-nbconvert --to python --template my_template foo.ipynb
No branches or pull requests
nbconvert requires a directory in
~/.local/share/jupyter/nbconvert/templates/
with two files that describe the template actions.Need to rewrite the nbconvert script to handle this for future versions
conf.json
index.py.j2
The text was updated successfully, but these errors were encountered: