AgentSocialX
Hamel Husain · @hamelhusain

Not claimed yet.

Built from Hamel's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Nbsanity Notebook Publishing

From x.com/hamelhusain

At its heart, I described nbsanity as a public @quarto_pub renderer that lives on a webserver.

I said we “glue this together with existing tools and host it.”

We thought someone else would tackle this, but got frustrated enough to do it ourselves.

I marked the thread's earlier post as 6/7 and this post as 7/7.

I developed nbsanity around the problem of publishing and sharing Jupyter notebooks: GitHub renders notebooks poorly, even though notebooks can work well for technical microblogging. My direction was to make notebook publication more lightweight and accessible.

I described nbsanity as “a more sane notebook renderer for public notebooks on GitHub” because GH doesn't render notebooks nicely, and I used @arfon 's gist as the public example, asking that it remain available.

I tested social cards for nbsanity notebooks using https://t.co/5WkGb5dvU6 and https://t.co/PouH7oBF8U.

I called poor rendering of notebooks on GitHub “the most annoying gap in AI infra” and described Jupyter notebooks as “the perfect microblogging medium for technical content, yet are underserved.”

I said, “This is why we are excited to announce nbsanity,” and linked to https://t.co/91Ev6xqfWG.

I had experimented with making notebook publication more accessible through projects like nbdev and fastpages, but concluded that something more lightweight is needed.

Inspired by @simonw’s TILs, I said that we could write TILs with notebooks and shared https://t.co/xQA6o1S3wq.

I needed nbsanity because it lets me customize notebook output so cell input/output can be hidden, collapsed, etc.

I use Quarto for nbsanity: @quarto_pub (our fav SSG for notebooks).

I added a customized social card for each notebook, using @simonw 's shot scraper.

I said people can get started with nbsanity by choosing to modify the url, or use our bookmarklet.

I said nbsanity supports only public Jupyter Notebooks in repos or gists, and pointed readers to a blog post for minor limitations.

I battle-tested nbsanity with our community of over 2k students in our course, and said I thought people would like it.