Sign inGet started

Changelog

← Go back to all updates

March 13, 2025

Modules: turn notebooks into reusable workflows

image (25).png

We're incredibly excited to introduce modules - a feature we believe will fundamentally change how your team works with notebooks! They let you package your existing best work - those tried and true data cleaning routines and trusted SQL queries - into reusable modules that anyone can import into their notebooks. No more reinventing the wheel with each new analysis. See how it works:

Until now, sharing code or queries across projects meant copy-pasting them across notebooks, making updates tedious and inconsistencies inevitable. Modules offer an elegant solution to these challenges - build once and use everywhere.

Creating analytical building blocks for your team is straightforward: click the module publish button, select which blocks to export as the desired outputs and you're done. You can also add parameters to your module simply by adding regular input blocks - just like when you create interactive apps.

2025-03-11 17.33.07 (1).gif

Importing modules is also easy: click on the module button in the footer, find the module you need, configure any parameters, and run it - all results seamlessly integrate into your current notebook. What makes this especially powerful is that each module runs in its own separate environment - none of the code interferes with your current notebook. You just get back the clean output variables you need, keeping your analysis tidy and focused.

2025-03-11 17.39.25 (1) (1).gif

Why are modules kind of a big deal? Because they open up so many possibilities.

  • Create a semantic layer for KPIs so everyone calculates metrics like churn rate the same way.
  • Build modular ETL pipelines that are easier to maintain and debug.
  • Package different ML models as modules and cleanly compare them in sequence.

We're already using modules ourselves to organize our data workflows, and honestly, we can't imagine going back. Check out our detailed guide and explore our example notebook to see our approach to building a semantic layer.

Modules are available in your workspace now. Visit our documentation for the details and start building your first module today.

Footer

Solutions

  • Notebook
  • Data apps
  • Machine learning
  • Data teams

Product

Company

Comparisons

Resources

  • Privacy
  • Terms

© Deepnote