# Here and Now: Reusing Code at Feedzai with JupyterLab Snippets

DevFeed: [Here and Now: Reusing Code at Feedzai with JupyterLab Snippets](<https://devfeed.tech/articles/here-and-now-reusing-code-at-feedzai-with-jupyterlab-snippets-26298.md>)

Original publisher: [Read original article](<https://medium.com/feedzaitech/here-and-now-reusing-code-at-feedzai-with-jupyterlab-snippets-ff3b8d880e50?source=rss----e11168e7fe6b---4>)

Author: João Palmeiro

Published: 2025-03-17T13:11:26Z

Content type: article

Language: en

Sources: [Feedzai](<https://devfeed.tech/sources/feedzai.md>)

Topics: [jupyterlab](<https://devfeed.tech/topics/jupyterlab.md>), [Data Science](<https://devfeed.tech/topics/data-science.md>), [Code](<https://devfeed.tech/topics/code.md>), [Data analysis](<https://devfeed.tech/topics/data-analysis.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [data-analysis](<https://devfeed.tech/tags/data-analysis.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [jupyter](<https://devfeed.tech/tags/jupyter.md>), [jupyterlab](<https://devfeed.tech/tags/jupyterlab.md>), [python](<https://devfeed.tech/tags/python.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [snippet](<https://devfeed.tech/tags/snippet.md>)

## AI overview

Feedzai developed JupyterLab Snippets to help data scientists reuse code from the many notebooks created for daily work. The article describes research using notebook repository statistics and user interviews, and reports that duplicating notebooks, maintaining reference collections of snippets, and sharing notebooks or snippets are common practices.

## Source excerpt

Data scientists use different Jupyter notebooks every day -- ranging from disposable ones for quick tasks to those shareable with clients. Over time, more and more notebooks accumulate, making it increasingly difficult to reuse them in whole or in part. To mitigate this problem and make the most relevant pieces of code quickly accessible to every data scientist, we developed JupyterLab Snippets at Feedzai -- our take on leveraging code snippets directly on JupyterLab. JupyterLab is a computational notebook platform that enables us to carry on data science work (and beyond) via notebooks. These notebooks, where code, text, and images come together, allow us to complete all kinds of tasks, keeping each input close to each output. At Feedzai, data scientists have access to different JupyterLab environments packed with custom notebooks and Python packages. Here they go from analyzing data to training models, from preparing reports to debugging the system -- a "lab of all trades", we could say. Given the importance of JupyterLab and notebooks in the daily work of our data scientists, we started a research project that culminated in JupyterLab Snippets. First, we collected statistics from internal notebook repositories across teams and conducted user interviews with junior and senior data scientists. We needed to know more about how data scientists actually use JupyterLab and notebooks, and what their ideas are for a better platform. A sneak peek of JupyterLab Snippets. From the very start, every data scientist can import snippets immediately or start their collection by creating one from scratch. After compiling the insights, several aspects became clear: JupyterLab and notebooks are heavily used for all sorts of data science and ad-hoc tasks (typically one per notebook). There is no single type of task (e.g., exploratory data analysis) that is more commonly addressed with notebooks than others. While file structures may look similar at first glance (each environment has at