sosiristseng / template-juliabook

Publish Julia Jupyter notebooks

Home Page:https://sosiristseng.github.io/template-juliabook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template publishing Julia-kerneled Jupyter notebooks

Jupyter book creates a beautiful website from Markdown and Jupyter notebook files. It is done by my docker-jupyterbook container.

Click Use this template button to copy this repository.

See also:

Notebook execution and publish

You will need one of "GitHub actions" and "Cirrus CI".

GitHub actions

Cirrus CI for notebook execution and publish

Cirrus CI workflow files:

You'll need a repo scope GitHub token (click here) encrypted in cirrus CI. Use the encrypted value as GH_TOKEN variable to push the gh-pages branch back to GitHub.

Jupyter Book

Jupyter book creates a beautiful website from Markdown and Jupyter notebook files. It is done by my docker-jupyterbook container.

Enable GitHub pages

Open your repository settings => Pages => GitHub Pages => Build and deployment => Source, select the gh-pages branch.

Automatic dependency updates

Renovate bot and Kodiak Bot

This repository uses Renovate Bot to automatically update Julia, Python, and GitHub actions, and Kodiak bot to automate pull requests.

One needs to enable both bots and adds automerge as an issue label for them to work properly.

Julia dependencies

The GitHub acttion will periodically update Julia dependencies and make a PR if the notebooks are executed successfully with the updated packages.

See also the instructions for how to trigger CI workflows in a PR. This repo uses a custom GitHub APP to generate a temporary token.

Checking links in markdown files and notebooks

GitHub actions regularly check if the links ihn the notebooks are valid.

Binder docker images

Binder runtime environment files:

This GitHub action builds docker images to run notebooks online on mybinder using repo2docker and pushes the resulting container to GitHub container registry (GHCR). The action also generates .binder/Dockerfile that points to the container.

About

Publish Julia Jupyter notebooks

https://sosiristseng.github.io/template-juliabook/

License:MIT License


Languages

Language:Julia 100.0%