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

Notebook requirements, configuration, and demos #2

Open
jd-moulton opened this issue Aug 12, 2021 · 1 comment
Open

Notebook requirements, configuration, and demos #2

jd-moulton opened this issue Aug 12, 2021 · 1 comment

Comments

@jd-moulton
Copy link
Member

The Jupyter Notebooks are wonderful, but do have some limitations. It would be great to tap into the expertise here to figure out a reasonable set of requirements, how to configure the notebook to support these requirements (i.e., do we need extensions and if so, which ones), and then include a demo notebook with simple examples covering these requirements.

For example, we could create a subdirectory to work on both the requirements and the demo notebook. The requirements doc could be laid out as

Requirements

Markdown cells

  • Math equations in isolation (standard)
  • Math equations with labels
  • ...

Code cells

  • Need certain module for reason x
  • ...
@daniellivingston
Copy link
Contributor

Math equations in isolation (standard)
Math equations with labels

IIRC, Jupyter should support MathJax by default, and it looks like we can configure some MathJax parameters for equation labels/referencing:

The TeX input processing in MathJax can be configured to add equation numbers to displayed equations automatically. This functionality is turned off by default, but it is easy to configure MathJax to produce automatic equation numbers...

It is also possible to set the tagging to 'all', so that every displayed equation will get a number, regardless of the environment used.
You can use \notag or \nonumber to prevent individual equations from being numbered, and \tag{} can be used to override the usual equation number with your own symbol instead...

You can use \label to give an equation an identifier that you can use to refer to it later, and then use \ref or \eqref within your document to insert the actual equation number at that location, as a reference.

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

2 participants