Giter Site home page Giter Site logo

salihmarangoz / github_ci_nbconvert Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 4.0 3.95 MB

Convert notebook (*.ipynb) files using Github Actions automatically after each commit and access HTML outputs with a public URL using Github Pages

License: MIT License

Jupyter Notebook 100.00%
notebooks github-pages nbconvert ipynb-viewer jupyter-notebooks html

github_ci_nbconvert's Introduction

github_ci_nbconvert

Why? Because Github renderer sometimes doesn't load the content. nbviewer.jupyter.org usually cache the rendered content and will not discard it for a long time. With this method, rendered HTML files will be pushed to build branch and these files will be publicly available to view. Additionally;

  • Previous commits will be squashed in the build branch. So, frequently updates will not cause using a lot of disk space.
  • *.ipynb files will be deleted on the build branch saving disk space.

Create a Build Branch

git clone YOUR_REPOSITORY
git checkout -b build
git push origin build

Enable Github Pages

Why? Because rendered files cannot be viewed directly. It is possible to use HTML viewer services likehtmlpreview.github.io, but since these services modify the HTML file MathJax may be broken. So we will be using Github Pages to publish these files directly.

Settings -> Pages -> Select branch: build and / (root)

No need to choose a theme.

Put Your Notebooks into notebooks Folder

This doesn't run well if notebooks are in the root directory. Only the notebooks directory will be published so put all images/notebooks/etc files into this folder.

Access to the Notebooks

URL may be different and even not similar to this template for your project. Check where is the Github Pages are being published at. The root URL may not be accessible since there is no notebooks/index.html file.

https://salihmarangoz.github.io/github_ci_nbconvert/image_compression_with_svd.html

https://salihmarangoz.github.io/github_ci_nbconvert/pca_dimension_reduction.html

https://salihmarangoz.github.io/github_ci_nbconvert/another_dir/numerical_optimization.html

github_ci_nbconvert's People

Contributors

salihmarangoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.