Open leouieda opened 8 years ago
This is a fantastic articulation of some of the challenges and ways forward for writing a computational-enabled book. Lots of progress over the last several years, but many of these are still issues - especially when doing more writing/reviewing than coding.
We (me and @birocoles) have plans of turning this into a book. The general idea is to have a short, direct, example driven book. This means adding lots of code to the current text we have.
We also want to make the text and code freely available on the internet (probably under a Creative Commons license). [Recommended read: Textbook Manifesto]
Some options for writing the actual book:
Use Jupyter notebooks for everything.
Advantages:
jupyter nbconvert
Disadvantages:
\cite
commands)Use Latex for the text and notebooks for the code
Advantages:
Disadvantages:
Use Sphinx with some useful plugins:
Advantages:
.rst
) and.py
files is PR friendly.ipynb
file from the input.py
or.rst
)Disadvantages:
.py
files (no interactivity during the development)My thoughts: I tend toward using Sphinx. Support for a PR friendly workflow is a must if we are to write this together. Also, through some plugins we can get most of the advantages of notebooks. The code can be automatically tested on TravisCI. The generated notebook files can be automatically commited to a separate repository and used online with mybinder.