How to start your DS / ML / AI / Tech blog with a minimum of complexities associated with hosting and deploying this blog.
At the end of February 2020, the guys from fast.aiintroduced the world fastpagesto a blogging platform. I will note that it is fastpagesbased on Jekyll, about which there are many posts on HabrΓ©.
An example of a blog on the engine fastpagesis this blog .
The main distinguishing feature and advantage fastpagesis the supported post formats out of the box:
- Jupyter notebooks (extension
.ipynb); - Markdown files (extension
.md); - Word files (extension
.docx)
Thus, the blog author needs to save the post in any of the above formats in the appropriate directory:
- './_notebooks/' for
.ipynb; - './_posts/' for
.md; - './_word/' for
.docx.
And he will do the rest fastpages, according to its authors.
fastpages uses Github Pages for hosting and Github Actions to automate post publishing.
As I understand it, this fastpagesis a refinement of the Github Pages + bundle Jekyll, where you can immediately get the published post from the Jupyter laptop.
Creating a blog with fastpagesandGitHub
, fastpages.
fastpages:
-
fastpages

- pull request ( ~ 30 ), , .

- pull request'a .
. ./_config.yml, :
titleβ , ;
descriptionβ , (, );
github_usernameβ GitHub ;
github_repoβ , GitHub, Google Colab Binder Jupyter ;
default_badgesβ GitHub, Google Colab Binder Jupyter . , ,default_badgestruefalse. , Binder,default_badges:
default_badges: github: true binder: false colab: true
urlβ , ;
baseurlβ . /_config.yml ("Special Instructions for baseurl"). , ;
twitter_usernameβ Twitter;
use_mathβtrue,LaTeX;
show_descriptionβ .true;
google_analyticsβ Google Analytics;
paginationβ , . 15. , , :

show_tagsβ , :

show_imageβtrue. ( 2 ):

.ipynb fastpages
- ( :
.ipynb,.md.docx) (./_notebooks,./_posts./_word).2020-05-26-DS-fastpages-blog.ipynb. Jekyll ( ).
:
-
YYYY-MM-DD-; - , , .
-
- commit push GitHub
master. - GitHub . ~5 . Β«ActionsΒ» GitHub. workflow,
pushmaster:
- Check Configurations β (, ), ;
- CI β ;
- GH Pages Status β .
, .
- , , . .
,fastpages.
, , . , , , fastpages.
Jupyter ( Markdown ) , / .
# "Title"
> "Awesome summary"
- toc: true
- branch: master
- badges: true
- comments: true
- author: Hamel Husain & Jeremy Howard
- categories: [fastpages, jupyter]
Markdown , , .. ---.
:
---
title: "Title"
description: "Awesome description"
toc: true
layout: post
categories: [markdown]
---
, , YAML . , : - title: "Deep learning: A tutorial"
YAML.
( ):
tocβtrue, Markdown ;badges[notebooks only] βtrueGoogle Colab,BinderGitHub, ;hide_github_badge[notebooks only] βtrueGitHub;hide_colab_badge[notebooks only] βtrueGoogle Colab;hide_binder_badge[notebooks only] βtrueBinder;branch[notebooks only] β Jupyter Colab GitHub. :master;commentsβtrue( );authorβtrue;categoriesβ ( "Tags").imageβ , . (Twitter) :
- β
images/figure.png; -
/images;
- β
search_excludeβ (Search), , ;hideβtrue, :
- permalinks ;
-
search_excludetrue, (Search);
sticky_rankβ , . , .
/ . ( ), , .
, Jupyter . , .
#hideβ , ;#hide_inputβ ;#collapse-hideβ , , ;#collapse-showβ , .
Altair
Altair . . .

Jupyter .

:

:

, , ( ), ( ).
.

Youtube
Youtube :
> youtube: https://youtu.be/L0boq3zqazI
Twitter.
,
> twitter: https://twitter.com/jakevdp/status/1204765621767901185?s=20
:

LaTeX
Jupyter LaTeX . , , use_math _config.yml (. ).
LaTeX :
> $$L(\theta) = \frac{1}{N} \sum_i^N{(y_i - \hat{y_i})^2} \rightarrow \min_{\theta}$$
:
.
: > Warning: There will be no second warning!
: > Important: Pay attention! It's important.
: > Tip: This is my tip.
: > Note: Take note of this.

, .
,
> Note: A doc link to [an example website: fast.ai](https://www.fast.ai/) should also work fine.
:

Emoji
:robot:.
:
:robot:.
Emoji.
jupyter , Markdown . , :
{% raw %}For example, here is a footnote {% fn 1 %}.
And another {% fn 2 %}
{{ 'This is the footnote.' | fndetail: 1 }}
{{ 'This is the other footnote. You can even have a [link](https://fastpages.fast.ai/jupyter/2020/02/20/test.html#Footnotes)' | fndetail: 2 }}{% endraw %}

fastpages
fastpages nbdev jupyter , word .md . , /_notebooks, /_word /_posts, GitHub Actions c nbdev , .
fast_template β fastpages
, fast.ai fast_template, , Word Jupyter , . fastpages , , .
, fast_template , . - Github, git.
- ;
- Jupyter + :
- ;
- / ;
- GIF-;
- youtube .
- Medium;
- url;
-
badgesGitHub,Binder,Google Colab, ; - ;
-
sticky_rank, ; - ;
- , :
- permalinks;
- ;
- , , (, ) , - .
- WYSIWYG (What You See Is What You Get):
Jekyll;- ;
-
Jekyll, . Jekyllgit;- Jupyter ;
- , spell checker Jupyter .
fast.ai DS , , .
, git, Markdown Jupyter Notebook. , .
, , , . pull request , .
, .
DS/ML/AI
-
fastpagesby Scott H. Hawley; - ;
- Andrej Karpathy github.io, medium;
- Machine Learning Mastery by Jason Brownlee;
- Fast.ai + fastpages blog;
- Airbnb;
- Uber;
- OpenAI;
- DeepMind;
- Nvidia + AI podcast;
- Microsoft AI blog + ML devblogs
-
fastpages; - Introducing fastpages;
- ,
.ipynb; -
fast_template+ fast.ai; - Project home page
nbdev+ repository + forum ; - A fairly broad overview of blog engines;
- More blogs [ 1 , 2 ];