Sources#
- class ipyforcegraph.sources.dataframe.DataFrameSource(**kwargs)[source]#
Bases:
ForceBaseA Graph Source that stores the
nodesandlinksasDataFrameinstances.Public constructor
- link_id_column Unicode('id')#
the name of the column for a links’s identifier, or 0-based position in the column if None
- link_preserve_columns TypedTuple()#
columns to preserve when updating
links
- link_source_column Unicode('source')#
the name of the column for a link’s source, defaulting to
source
- link_target_column Unicode('target')#
the name of the column for a link’s target, defaulting to
target
- node_id_column Unicode('id')#
the name of the column for a node’s identifier, or 0-based position in the column if None
- node_preserve_columns TypedTuple()#
columns to preserve when updating
nodes
- class ipyforcegraph.sources.widget.WidgetSource(widgets, **kwargs)[source]#
Bases:
DataFrameSourceA source that displays the widgets, traits, links, and other features of one or more
Widget(or, technically,HasTraits) instances.Detect IPython, then continue with normal widget initialization.
- find_trait_notifier_graph_data(widget, graph_data)[source]#
Discover trait notifiers from the observed has_traits.
- Return type:
- graph_data Dict()#
an internal collection of observed Data
- ignore_classes TypedTuple()#
widget classes that should never be collected
- ignore_modules TypedTuple()#
modules from which instances should never be collected
- ignore_traits TypedTuple()#
names of traits that should never be collected
- observed_has_traits TypedTuple()#
the traitleted from which to discover data
A DataFrameSource which inspects
a dodo.py and its tasks.
- class ipyforcegraph.sources.dodo.DodoSource(**kwargs)[source]#
Bases:
DataFrameSourceA source that displays the files, tasks, and dependencies of a
dodo.py.Public constructor
- backend Unicode('sqlite3')#
the backend for
doit’s dependency state
- dep_file Unicode('.doit.db')#
the path to
doit’sdep_file, relative to theproject_root
- discover_one_file(path_name, field, task_id, graph_data)[source]#
Update nodes and links for a single file referenced by a
Task.- Return type:
- discover_one_task(task, graph_data)[source]#
Update nodes and links from a single
Task.- Return type:
- dodo_file Unicode('dodo.py')#
the path to a
dodo.py, relative to theproject_root
- graph_data Dict()#
an internal collection of observed Data
- project_root Union()#
a path to a folder that contains a
dodo.py
- show_directories Bool(False)#
create nodes for directories, and links for containment
- show_files Bool(True)#
create a node for each file, or collapse to dep groups