Custom exporter of nbconvert for R kernel (IRKernel)
jupyter nbconvert --debug --to=script my_notebook.ipynb
Markdown cell and input cell number is exported as comment, like --to=python
.
jupyter nbconvert --debug --to=RNotebook my_notebook.ipynb
Code cells which has "notshow" = true
in metadata are not in exported files.
# git clone https://github.com/whatalnk/nbconvert_exporter_r
# cd nbconvert_exporter_r
# pip install wheel
python setup.py bdist_wheel
pip install --force-reinstall dist\nbconvert_exporter_r-x.x.x-py3-none-any.whl
- jupyter_notebook_config.py
~/.jupyter
- To save script and HTML whenever the notebook is saved