solidipes.viewers package
Submodules
- solidipes.viewers.binary module
- solidipes.viewers.code_snippet module
- solidipes.viewers.hdf5 module
- solidipes.viewers.image module
- solidipes.viewers.image_source module
- solidipes.viewers.matlab module
- solidipes.viewers.notebook module
- solidipes.viewers.pdf module
- solidipes.viewers.pyvista_plotter module
- solidipes.viewers.symlink module
- solidipes.viewers.table module
- solidipes.viewers.text module
- solidipes.viewers.video module
- solidipes.viewers.viewer module
- solidipes.viewers.xdmf module
- solidipes.viewers.xml module
Module contents
- class solidipes.viewers.Binary(data=None)[source]
Bases:
ViewerViewer for (unknown) binary
- _abc_impl = <_abc._abc_data object>
- class solidipes.viewers.Code(data=None, display_lint=True)[source]
Bases:
Text- _abc_impl = <_abc._abc_data object>
- class solidipes.viewers.HDF5(data=None)[source]
Bases:
ViewerViewer for HDf5
- _abc_impl = <_abc._abc_data object>
- datasets
Image to display
- class solidipes.viewers.Image(data=None)[source]
Bases:
ViewerViewer for images
- _abc_impl = <_abc._abc_data object>
- image
Image to display
- class solidipes.viewers.ImageSource(data=None)[source]
Bases:
ViewerViewer for images produced by sources
- _abc_impl = <_abc._abc_data object>
- image
Image to display
- class solidipes.viewers.MarkdownViewer(data=None)[source]
Bases:
Text- _abc_impl = <_abc._abc_data object>
- class solidipes.viewers.MatlabData(data=None)[source]
Bases:
ViewerViewer for Matlab Data .mat file
- _abc_impl = <_abc._abc_data object>
- arrays
Text to display
- class solidipes.viewers.Notebook(data=None)[source]
Bases:
ViewerViewer for notebooks
- _abc_impl = <_abc._abc_data object>
- notebook
Text to display
- class solidipes.viewers.PDF(data=None, height=1000)[source]
Bases:
ViewerViewer for pdfs
- _abc_impl = <_abc._abc_data object>
- pdf
Image to display
- class solidipes.viewers.PyvistaPlotter(data_container=None, add_kwargs={}, show_kwargs={}, **kwargs)[source]
Bases:
ViewerViewer for pyvista meshes
- Parameters:
**kwargs – keyword arguments passed to the pyvista.Plotter constructor
- _abc_impl = <_abc._abc_data object>
- add(data_container, **kwargs)[source]
Add mesh to the viewer
- Parameters:
**kwargs – keyword arguments passed to the pyvista.Plotter.add_mesh method
- add_mesh(data_container: DataContainer, **kwargs)[source]
Add mesh to the viewer
- Parameters:
**kwargs – keyword arguments passed to the pyvista.Plotter.add_mesh method
- add_points(data_container, **kwargs)[source]
Add mesh as points to the viewer
- Parameters:
**kwargs – keyword arguments passed to the pyvista.Plotter.add_points method
- plotter
Pyvista plotter
- save(path, **kwargs)[source]
Save the view to a file
- Parameters:
path – path to the file
**kwargs – keyword arguments passed to the pyvista.Plotter.screenshot method
- show(auto_close=False, **kwargs)[source]
Show the viewer
- Parameters:
auto_close – whether to close the viewer after showing it
**kwargs – keyword arguments passed to the pyvista.Plotter.show method
- shown
keeps track of whether the plotter has already been shown
- class solidipes.viewers.SymLink(data=None)[source]
Bases:
ViewerViewer for symlinks
- _abc_impl = <_abc._abc_data object>
- video
Image to display
- class solidipes.viewers.Table(data_container=None)[source]
Bases:
ViewerViewer for tables
- _abc_impl = <_abc._abc_data object>
- data_container
Table to display
- show(*args, **kwargs)
Show the viewer
- class solidipes.viewers.Text(data=None)[source]
Bases:
ViewerViewer for formatted text
- _abc_impl = <_abc._abc_data object>
- text
Text to display
- class solidipes.viewers.Video(data=None)[source]
Bases:
ViewerViewer for videos
- _abc_impl = <_abc._abc_data object>
- video
Image to display
- class solidipes.viewers.Viewer(data_container=None, add_kwargs={}, show_kwargs={}, **kwargs)[source]
Bases:
ABCAbstract class for viewers
If istanciated with data, it will directly display it.
- Parameters:
data – data to display
add_kwargs – kwargs to pass to the add method. Note: cannot be passed as a positional argument because of get_data_from_container decorator.
show_kwargs – kwargs to pass to the show method
**kwargs – kwargs to pass to the init method
- _abc_impl = <_abc._abc_data object>
- compatible_data_types
List of data types that are compatible with the viewer