This app is an effort to share a simple web publishing system, enabled by Streamlit, which can display both text based and interactive code-based posts , which could be used for blogging, documentation etc…
Posts can be written in .md or .py files, including front matter to display a title, date, tags and contributing authors. Save your posts in a folder and then the app takes care of arranging and displaying all posts.
It’s a basic alternative to something like Jekyll + GitHub pages, with the interactive capabilities made possible by Streamlit.
Setting this up for your own project is easy. All code is within streamlit_app.py, and instructions shown on the app.
Hi - I had a need for this kind of thing recently and remembered I had bookmarked it a long time ago. I have it running and love it. Thanks!
The code in your gradient descent article (the last set of plots) needs to be fixed to work with the latest MPL library. Here’s the fix proposed by ChatGPT:
Summary
The error is due to the method gca() in Matplotlib’s Figure object. In recent versions of Matplotlib, gca() no longer accepts the projection='3d' keyword argument when invoked on a Figure instance directly. Instead, gca() is used for getting the current axes, and projection='3d' is only valid when creating a new 3D subplot using the add_subplot() or plt.subplot() methods.
To fix this issue, you should use add_subplot() with projection='3d' instead of gca():