The simplest blog post¶
This is the simplest blog post I can create with a jupyter notebook. It has no code or pictures. It only has the title, the blog meta-data, and some text. I don’t need to execute this notebook before posting it. Below is a description of what I need to do to create and publish this blog post.
I start by creating a folder in my notes folder and the yearly sub-folder. The name of the folder will be the URL.
~/Desktop/Tauganet/notes/2026/the-simplest-blog-post/
Will become:
https://tauganet.is/2026/the-simplest-blog-post/
Then I run jupyter-notebook in that folder and create a notebook with the name index.ipynb. In this notebook, I create three cells:
The first cell is the title in a markdown cell. It doesn’t have to match the folder name but probably should be similar.
The second cell is a code cell with a
#blogcomment at the top. It has meta-data for this blog post: the date, description, and tags.The last cell is this text in a markdown cell.
When the blog post is ready to be published, I create a symlink to my Sphinx source folder.
~/Desktop/Tauganet/source/2026/the-simplest-blog-post/
Posts are published and unpublished by creating and removing the symlinks. That lets me work on several drafts at a time or prepare for Blogtober with a few ready posts 😊.
Then I run a sphinx-build command to create the html in the build folder. The ipynb file is also copied there. There is a link to the ipynb file of this post at the top of the page.
~/Desktop/Tauganet/build/html/2026/the-simplest-blog-post/index.html
~/Desktop/Tauganet/build/html/2026/the-simplest-blog-post.ipynb.txt
Finally, I run an lftp command to upload the changes to the server.
I think that’s simple enough for now.
There is not really a reason to use a jupyter notebook for this specific blog post. I can also use a markdown file. Either works fine but my blogging system is built around jupyter notebooks and sphinx. I wanted an easy way to blog about simple programs.