Py
ipyvizzustory.env.py
Python
environment dependent modules.
ipyvizzustory.env.py.story
A module for working with presentation stories in Python
environment.
Story
Bases: Story
A class for representing a presentation story in Python
environment.
Source code in src/ipyvizzustory/env/py/story.py
class Story(StoryLib):
"""A class for representing a presentation story in `Python` environment."""
def __init__(self, data: Data, style: Optional[Style] = None):
"""
Presentation Story constructor.
Args:
data: Data set for the whole presentation story.
After initialization `data` can not be modified,
but it can be filtered.
style: Style settings for the presentation story.
`style` can be changed at each presentation step.
"""
super().__init__(data=data, style=style)
def play(self) -> str:
"""
A method for returning the assembled `HTML` code in `Python` environment.
Returns:
The assembled `HTML` code as string.
"""
return self.to_html()
__init__(data, style=None)
Presentation Story constructor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
Data
|
Data set for the whole presentation story.
After initialization |
required |
style |
Optional[Style]
|
Style settings for the presentation story.
|
None
|
Source code in src/ipyvizzustory/env/py/story.py
def __init__(self, data: Data, style: Optional[Style] = None):
"""
Presentation Story constructor.
Args:
data: Data set for the whole presentation story.
After initialization `data` can not be modified,
but it can be filtered.
style: Style settings for the presentation story.
`style` can be changed at each presentation step.
"""
super().__init__(data=data, style=style)
play()
A method for returning the assembled HTML
code in Python
environment.
Returns:
Type | Description |
---|---|
str
|
The assembled |
Source code in src/ipyvizzustory/env/py/story.py
def play(self) -> str:
"""
A method for returning the assembled `HTML` code in `Python` environment.
Returns:
The assembled `HTML` code as string.
"""
return self.to_html()