ipyflow-core

raw JSON →
0.0.227 verified Fri May 01 auth: no python

Backend package for ipyflow's dataflow functionality. Current version: 0.0.227. Release cadence: frequent, multiple releases per month.

pip install ipyflow-core
error ModuleNotFoundError: No module named 'ipyflow'
cause Installed ipyflow-core but trying to import 'ipyflow'.
fix
Install 'ipyflow' jupyterlab extension or use 'from ipyflow.core import ...'
error ImportError: cannot import name 'FlowManager' from 'ipyflow'
cause Incorrect import path; FlowManager is in ipyflow-core, not ipyflow.
fix
Install ipyflow-core and use 'from ipyflow.core import FlowManager'
gotcha Do not import from 'ipyflow' directly for core functionality; use 'ipyflow-core' instead.
fix Use 'from ipyflow.core import ...'
breaking Reactive behavior is enabled by default since v0.0.193; explicit opt-out required if not desired.
fix Set 'FlowManager(reactive=False)' to opt out.
deprecated The 'cousin_reactivity' flag is deprecated; cousin reactivity is now the default.
fix Remove the flag; if you need to disable, use 'flow_manager.cousin_reactivity = False'.

Initialize a FlowManager and use the reactive decorator.

from ipyflow.core import FlowManager

fm = FlowManager()
@fm.reactive()
def add(a, b):
    return a + b

print(add(1, 2))