shinaoka / binder-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sparse-ir

Set up tools

pip3 install jupyter-book ghp-import jupytext

How to build html

  1. Write a jupyter notebook. Your notebook must be placed under the src directory with a name *_py.ipynb (python) or *_jl.ipyb (julia).

  2. Convert the notebook to a MyST markdown file.

jupytext --to md:myst notebook_py.ipynb
  1. Make html files

The following command builds html files.

make build

Update existing MyST Markdown file

  1. Convert a MyST markdown file to a notebook:
jupytext --to ipynb notebook_py.md
  1. Update the notebook using jupyter notebook/lab

  2. Sync the markdown file and the notebook.

jupytext --sync --to md:myst notebook_py.ipynb

How to commit a new/updated Markdown file

Before commiting a new MyST Markdown file, update the header of all Markdown files:

make update_header

Then, you will be ready to commit updated files.

Upload html files

make upload

References

You can add references to references.bib.

Trouble shooting

About

License:MIT License


Languages

Language:Jupyter Notebook 97.8%Language:TeX 2.1%Language:Python 0.1%Language:Makefile 0.0%Language:Shell 0.0%Language:Julia 0.0%