ElasticNotebookのライブラリ版
Project description
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
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/*
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 elastic_notebook_slim-0.0.9.tar.gz.
File metadata
- Download URL: elastic_notebook_slim-0.0.9.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079d4b344b40d9906c027809a720ac8057941905cc93d516c366f8530cbc97fa
|
|
| MD5 |
6f430158a61d7195ceecbad24a68a4c2
|
|
| BLAKE2b-256 |
add36f7cc22f0aeb5885c4afd3eb705d410c1a7a9df2532ede51331630108e19
|
File details
Details for the file elastic_notebook_slim-0.0.9-py3-none-any.whl.
File metadata
- Download URL: elastic_notebook_slim-0.0.9-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80827cf26e5d99d4f3e049bc25674acf4c7f438020fed6336af123cf0236fe2d
|
|
| MD5 |
20a2e6f405d30aa20acbeffad422c149
|
|
| BLAKE2b-256 |
d818f7005998c02a02eefc4054de8d1e2a31f7024cc97ae0a9e5c88e061bf125
|