Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SpM-lab/sparse-ir-tutorial

Open more actions menu

Repository files navigation

sparse-ir

Author guideline

  • In Markdown cells, use the $$, $$ $$ environments for equations.
  • References are listed in the markdown cell at the bottom of each notebook.

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. Convert the notebook file to a Markdown file:

jupytext --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

Docker on VSCode

We recommend to use VSCode + Docker to build HTML files.

  1. Make sure you have Docker and VSCode installed.

  2. Install the Remote - Containers in VSCode Extensions.

  3. Go to the repository and open it in VS Code.

cd /path/to/this/repository

code .
  1. To use Docker with VS Code, execute the following command.
ln -s .dev/devcontainer .devcontainer
  1. Press the green mark at the bottom left and press Reopen in Container from the command palette. After the build is finished, you can enter the Docker container.

References

You can add references to references.bib.

Trouble shooting

About

Tutorials of sparse-ir libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.