Skip to content

Tools, scripts and instructions for converting Jupyter notebooks to RST files

Notifications You must be signed in to change notification settings

QuantEcon/ipynb_to_rst_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ipynb_to_rst_tools

Tools, scripts and instructions for converting Jupyter notebooks to RST files

Instructions from Brandon and Tom

Conversion method for pandoc

To load on Manjaro Dell:

  1. Must have pandoc >= 2.6

    To get it:

    • yay pandoc -bin

    • on ubuntu via package manager or via debian

    Check version via pandoc --version [in a terminal]

    If you see a lower numbered version of pandoc...

    conda deactivate (in a terminal)

Note: As of March 2019, the default version of pandoc in Anaconda is 1.19

To get things to work in a terminal (in the directory where the *.ipynb is):

  1. This step is necessary only if you want to strip out the bad $ \alpha $ stuff

    In a bash terminal issue command

    python latex_space_strip.py [myinputfile.ipynb] -o [myoutputfile.ipynb]

  2. Issue this command in a bash terminal

    pandoc [myfilenamenew.pynb] -f ipynb+tex_math_dollars -t rst -s -o [newfilename.rst]

    For example (this worked on Feb 22, 2019 in Singapore)

    pandoc test23.ipynb -f ipynb+tex_math_dollars -t rst -s -o test23.rst

About

Tools, scripts and instructions for converting Jupyter notebooks to RST files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •