Copy Python objects as portable code snippets between Jupyter notebooks
Project description
DataBoomer
A Jupyter tool for seamlessly transferring complex Python objects between notebooks. DataBoomer serializes your objects as base64 string and creates self-contained code snippets that can perfectly recreate them in any notebook.
Key Features
- One-click copying of serialized objects to clipboard
- Handles complex Python objects using
dill - Creates self-contained, portable code snippets
- Automatically detects variable names
- Preserves object state exactly as it was
Install
pip install databoomer
Usage in Jupyter
from databoomer import DataBoomer
import pandas as pd
# Save a complex DataFrame with custom processing
df = pd.DataFrame({'values': [1, 2, 3]})
df['processed'] = df['values'] * 2
DataBoomer(df, comment="Preprocessed dataset")
# Copies to clipboard:
# # comment: Preprocessed dataset
# payload = '''[encoded_data]'''
# df = dill.loads(codecs.decode(payload.encode(), 'base64'))
# Custom variable names
model = train_complex_model()
DataBoomer(model, obj_name="trained_model", comment="Model trained on XYZ dataset")
# The copied code can be pasted into any notebook to recreate the exact object
Why DataBoomer?
- Share Objects: Easily transfer complex objects between notebooks
- Session Recovery: Save important objects in a format that survives kernel restarts
- Collaboration: Share exact object states with colleagues
- State Preservation: Captures complete object state, including custom attributes and processing
Remember: DataBoomer creates portable, self-contained code snippets that recreate your objects exactly as they were. Just boom it, switch notebooks, paste, and you're ready to go.
Note: This tool is particularly useful when working with objects that are:
- Result of complex processing
- Trained models or fitted transformers
- Custom class instances with specific state
- Image snippets, selfcontained in the jupyter lab
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file databoomer-0.1.1.tar.gz.
File metadata
- Download URL: databoomer-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
201dd230dcdfc243f38085ad2be1abdd984cefabcb9441baf5a0f2754ee0b7ff
|
|
| MD5 |
fd65bc7b7162ca5095ae16cdbb1dbe21
|
|
| BLAKE2b-256 |
2bb58691920621572c609116307c82753ac7e5d47a474e7747a7e6eb493907f8
|
File details
Details for the file databoomer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: databoomer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30e2ed4ee6b86eeb6b11c8eb3a9d5e839a9e13869ff667869939350fdbada27a
|
|
| MD5 |
e22b2a31edbf70a26b2fcc1bd303e1a8
|
|
| BLAKE2b-256 |
7149cb1314552a817af744d15042d33d34d03ebcd49bdb90f09f3c8697c481c2
|