Notebook suite for SecretFlow
Project description
SecretNote
Notebook suite for SecretFlow.
This is currently a developer preview.
API may change without prior notice. No guarantee is made about the security, correctness, performance, or usefulness of this feature.
Install
Please read our note about dependencies first.
We recommend installing in a clean Python environment.
python --version
# Python 3.8.18
python -m venv .venv
source .venv/bin/activate
python -m pip install 'secretflow==1.2.0b0' 'secretnote==0.1.0.dev0'
Start
In your terminal, run:
secretnote
Or:
python -m secretnote.server
Commonly-used Jupyter command line options are supported. For example, to change the port:
secretnote --ServerApp.port 8889
Features
Using the profiler
from secretnote.instrumentation.sdk import create_profiler
with create_profiler() as profiler:
# SecretFlow code here
weights = alice(...)(...)
bias = bob(...)(...)
result = spu(...)(...)
profiler.visualize()
FAQ
Environment and dependency versioning
For best results, install this project in a clean Python environment.
SecretFlow has many platform-specific dependencies. As this project is in early stage, we do not yet guarantee that this project will work in all environments, or even that installation will succeed.
Supported Python versions match those of SecretFlow, currently only Python 3.8.
To see versions of commonly used dependencies, run python -m secretnote.utils.version
:
> python -m secretnote.utils.version
environment info
├── system
│ └── platform = macosx-11.0-arm64
├── python
│ ├── version = 3.8.18
│ ├── path = ...
│ └── implementation = cpython
└── packages
├── grpc = 1.56.2
├── heu = 0.4.4b0
├── ipykernel = 6.27.0
├── ipython = 8.12.3
├── jaxlib = 0.4.12
├── jupyter_server = 2.10.1
├── pydantic = 1.10.13
├── ray = 2.6.3
├── secretflow = 1.2.0b0
├── secretnote = 0.1.0-dev.0
├── spu = 0.6.0b0
├── tensorflow = unavailable
└── torch = 2.1.1
Issues usually arise when the versions of grpc
, jaxlib
, ray
, and/or secretflow
are not compatible with each other. Additionally, you may encounter issues on macos-*-arm64
(Apple Silicon).
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
Hashes for secretnote-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff046ffa167cef228bb7325a8a0d520c42cb818c7614a4ad1a36404ebc7228e |
|
MD5 | a27e22c66fdec045f4a1076b89bf56c4 |
|
BLAKE2b-256 | 5a68a45197a92f145311c38a55984983d835a0b6305ff8411346b7e01e9db7eb |