CreateView
Experimental
The Workbench View classes are currently in experimental mode so have fun but expect issues and API changes going forward.
CreateView is the abstract base class for view creation (training, display, computation, etc.). The concrete view builders — ColumnSubsetView, PandasToView, ComputationView, and others — subclass it.
CreateView: An abstract base class for View Creation (training, display, etc)
CreateView
Bases: ABC
CreateView: An abstract base class for View Creation (training, display, etc)
Source code in src/workbench/core/views/create_view.py
__init__(view_name, artifact, source_table=None)
CreateView base class constructor
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
view_name
|
str
|
The name of the view |
required |
artifact
|
Union[DataSource, FeatureSet]
|
The DataSource or FeatureSet object |
required |
source_table
|
str
|
The table/view to create the view from. Defaults to None |
None
|
Source code in src/workbench/core/views/create_view.py
create(**kwargs)
abstractmethod
Abstract Method: Create the view, each subclass must implement this method
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Additional keyword arguments specific to the view type |
{}
|
Returns:
| Type | Description |
|---|---|
Union[View, None]
|
Union[View, None]: The created View object (or None if failed to create the view) |
Source code in src/workbench/core/views/create_view.py
Questions?

The SuperCowPowers team is happy to answer any questions you may have about AWS and Workbench. Please contact us at workbench@supercowpowers.com or on chat us up on Discord