Get a Jupyter Notebook Filename From Itself
When working in notebooks, you'll occasionally need to access the notebook's own filename. Here's code to do it, which I've verified works in Jupyter Notebook Classic.
When working in notebooks, you'll occasionally need to access the notebook's own filename. Here's code to do it, which I've verified works in Jupyter Notebook Classic.
Here I play with using Pynput as a system level keylogger, from within my Jupyter notebook version of this.
I add a mini-nav to the vanilla non-MonsterUI version of notebook detail pages (used for in-depth CSS experiments). I also now export main.py from within this notebook.
Here I turn this Jupyter notebook into a Python script, using nbdev's nb_export function from the notebook itself.
I'm starting to accumulate many UntitledX.ipynb files. Here I use the Gemini 1.5 Flash language model from Google to rename each one based on its contents.
Just little tweaks to make sure the site still works with all the new MonsterUI stuff.
Here I update audrey.feldroy.com with some of the latest MonsterUI text presets.
Here I improve audrey.feldroy.com in small, subtle ways.
Here I clean up the code, back-integrate the manual fixes I've since made, and reduce the steps it takes to export.
Here I use the Python Imaging Library to create and display an image in-notebook, so that it's rendered as part of the blog post on audrey.feldroy.com.
Here in this Jupyter notebook I rewrite audrey.feldroy.com and use nb_export to export it as my new main.py for arg-blog-fasthtml.
SQLite full text search setup via APSW for all the notebooks on this website, inspired by the APSW FTS5 Tour).
I've made good progress on creating a notebook every day. Now I have so many notebooks that my index page needs an overhaul, including:
I'm taking inventory of all the Command Mode and dual-mode nbclassic keyboard shortcuts on macOS, with my random musings about each. This is part of my deliberate practice to master all of the useful ones, and will serve as a reference for myself later.
I'm starting with a snippet of code from the bottom of execnb's 01_nbio.ipynb, breaking it down into pieces and seeing each part.
I prompted Claude 3.5 Sonnet to make an HTML and vanilla JS birthday app for my daughter who just turned six. Then I figured out how to show the artifact inline in a Jupyter notebook.
This notebook uses images in every possible way.
## Variables
I have Jupyter notebooks in nbs/. I want to turn them into cards from the filenames, without having to read the file contents.
This notebook shows how to:
## Understand the Problem
## Understand the Problem
This notebook is a SolveIt-style exploration of https://github.com/AnswerDotAI/execnb/. Here I am following the SolveIt process in a Jupyter notebook to learn new things.
Exploring how execnb reads notebooks and nb2fasthtml renders them, to understand the tools I'm building on.
I feel like Jupyter notebooks would be really nice for blogging or publishing "Today I Learned" posts. I had heard about Fastpages before via Jeremy Howard's blog or YouTube videos, but seeing that it was deprecated in favor of nbdev, I decided to try nbdev.