Coverage for src/ipyvizzustory/py_env/story.py: 100%
8 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-23 18:23 +0100
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-23 18:23 +0100
1"""A module for working with ipyvizzu-story presentations."""
3from typing import Optional
5from ipyvizzu import Data, Style
7from ipyvizzustory.storylib.story import Story as StoryLib
10class Story(StoryLib):
11 """A class for representing a presentation story in Python environment."""
13 def __init__(self, data: Data, style: Optional[Style] = None):
14 super().__init__(data=data, style=style)
16 def play(self) -> str:
17 """A method for displaying the html code."""
19 return self.to_html()