Coverage for src/ipyvizzustory/env/py/story.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-25 14:02 +0100

1"""A module for working with ipyvizzu-story presentations.""" 

2 

3from typing import Optional 

4 

5from ipyvizzu import Data, Style 

6 

7from ipyvizzustory.storylib.story import Story as StoryLib 

8 

9 

10class Story(StoryLib): 

11 """A class for representing a presentation story in Python environment.""" 

12 

13 def __init__(self, data: Data, style: Optional[Style] = None): 

14 super().__init__(data=data, style=style) 

15 

16 def play(self) -> str: 

17 """A method for displaying the html code.""" 

18 

19 return self.to_html()