Skip to main content

elastic-notebook-slim

元レポジトリ

https://github.com/illinoisdata/ElasticNotebook

インストール方法

カレントディレクトリにダウンロードせずライブラリとして使う方法(一般ユーザ向け)

pip install elastic-notebook-slim

ソースコードをローカルにダウンロードして使う方法(開発者向け)

git clone https://github.com/MRyutaro/elastic_notebook_slim.git
pip install ./elastic_notebook_slim

c

Project Structure

elastic-notebook
│   ElasticNotebook.py                     ## top-level cell magic
│───algorithm
│   │───baseline.py                        ##  Migrate/recompute all baselines
│   │───optimizer_exact.py                 ##  Replication plan generation via min-cut reduction (Section 5.3)
│   └───selector.py                        ##  Optimizer base class
└───core
    │───common
    │   │───checkpoint_file.py             ## Struct of ElasticNotebook's checkpoint file
    │   │───profile_graph_size.py          ## Size estimator for ElasticNotebook's Application History Graph
    │   │───profile_migration_speed.py     ## Profiler for network bandwidth
    │   └───profile_variable_size.py       ## Profiler for variable size
    │───graph
    │   │───cell_execution.py              ## Data structure for Cell Executions
    │   │───graph.py                       ## ElasticNotebook's Application History Graph (Section 4.1)
    │   └───variable_snapshot.py           ## Data strcutre for Variable Snapshots
    │───io
    │   │───adapter.py                     ## File writer base class
    │   │───filesystem_adapter.py          ## Writer for writing checkpoint file to NFS
    │   │───migrate.py                     ## Helper for creating checkpoint file
    │   │───pickle.py                      ## Helper for variable serializability detection
    │   └───recover.py                     ## Helper for unpacking checkpoint file
    │───mutation
    │   │───fingerprint.py                 ## Helper for detecting variable modifications via ID graph and object hash
    │   │───id_graph.py                    ## ID graph construction and comparison (Section 4.2)
    │   └───object_hash.py                 ## Object hash construction and comparison (Section 4.2)
    └───notebook
        │───checkpoint.py                  ## Line magic for checkpointing notebook session (Section 3.2)
        │───find_input_vars.py             ## AST analysis module for finding input variables
        │───find_output_vars.py            ## Helper for finding created/deleted variables via namespace difference
        │───restore_notebook.py            ## Line magic for restoring notebook session (Section 3.2)
        └───update_graph.py                ## Helper for updating Application History Graph

PyPi へのアップロード方法

自動でアップロードする方法

uv pip install -e .  # 初回のみ実行する
bump2version {hogehoge}  # コマンドは以下のいずれかから選択する
git push --follow-tags  # コミットとタグの両方をプッシュする
コマンド 説明 バージョン変更例
bump2version patch パッチバージョンを上げる 0.0.1 → 0.0.2
bump2version minor マイナーバージョンを上げる 0.1.0 → 0.2.0
bump2version major メジャーバージョンを上げる 1.0.0 → 2.0.0

手動でアップロードする方法

uv pip install twine build
python -m build
python -m twine upload dist/*

Metadata

Release files for elastic-notebook-slim 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elastic-notebook-slim 0.0.13
File Size Uploaded
elastic_notebook_slim-0.0.13.tar.gz 28.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elastic-notebook-slim 0.0.13
File Interpreter ABI Platform
elastic_notebook_slim-0.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 63.6 kB

Release files / elastic_notebook_slim-0.0.13.tar.gz

Download URL elastic_notebook_slim-0.0.13.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7a481175935927ded84639bddf6d3adc1b7ba9e9830938259b67a28890e13612
BLAKE2b-256 checksum
How to use checksums
7880b55983857e28833bc431e3a511557f3fd6537bc52c5c7b7ec10f1362f190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / elastic_notebook_slim-0.0.13-py3-none-any.whl

Download URL elastic_notebook_slim-0.0.13-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
765afbdfbf870c9c72ca14417bbeb146646096a7dfab016b210806b4a210065a
BLAKE2b-256 checksum
How to use checksums
a3d329b0741d4ed464d39b8294e28f91ce1fca8604c410f17929fee8e522e894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page