Introducing Double-Sharp: a new Notebook Extension for client-side cache and auto dependency

Hello, everyone.

I’m happy to introduce a small extension called Double-Sharp that can make your python development in JupyterLab notebooks easier. This extension allows you to skip executing already executed cells when running the whole notebook, or to automatically execute dependency cells of a specific cell.

Features

Cell Execution Cache

Skip execution if the variables assigned in the cells (and also the imported modules) already exist in the kernel. This feature doesn’t actually cache data on the server like ipycache does. It just references a list of variables that exist in the kernel while using the notebook on the client side to determine whether or not to execute a cell.

(For a more detailed explanation, see Documentation)

Auto Dependency

Execute dependency cells if unresolved variables or modules of the cell are assigned in the cells above.

(More detailed explanation coming later)

Skip Cell Execution

Skip code cell execution.

(More detailed explanation coming later)

Install

To install the extension, execute:

pip install jupyterlab_double_sharp

Documentation

GitHub README

Feedback

This project is still in its early stages, and we’re always happy to hear from you with issue reports or feedback. I don’t speak English, so I’m relying on automatic translation, but I’ll do my best to communicate with you.

Thank you!

2 Likes