Skip to content
Snippets Groups Projects
Commit 464e1f06 authored by Frans Skarman's avatar Frans Skarman :tropical_fish: Committed by Oscar Gustafsson
Browse files

Fix docs build readme and add more _repr_*_

parent 5484238a
No related branches found
No related tags found
1 merge request!178Fix docs build readme and add more _repr_*_
Pipeline #89547 passed
...@@ -171,8 +171,10 @@ pytest --mpl ...@@ -171,8 +171,10 @@ pytest --mpl
### Generating documentation ### Generating documentation
In `B-ASIC/docs_sphinx`: ```
sphinx-build -b html docs_sphinx docs_sphinx/_build
```
or in `B-ASIC/docs_sphinx`:
``` ```
make html make html
``` ```
......
...@@ -1425,6 +1425,19 @@ class SFG(AbstractOperation): ...@@ -1425,6 +1425,19 @@ class SFG(AbstractOperation):
def _repr_mimebundle_(self, include=None, exclude=None): def _repr_mimebundle_(self, include=None, exclude=None):
return self.sfg()._repr_mimebundle_(include=include, exclude=exclude) return self.sfg()._repr_mimebundle_(include=include, exclude=exclude)
def _repr_jpeg_(self):
return self.sfg()._repr_mimebundle_(include=["image/jpeg"])[
"image/jpeg"
]
def _repr_png_(self):
return self.sfg()._repr_mimebundle_(include=["image/png"])["image/png"]
def _repr_html_(self):
return self.sfg()._repr_mimebundle_(include=["image/svg+xml"])[
"image/svg+xlm"
]
def show_sfg(self, format=None, show_id=False, engine=None) -> None: def show_sfg(self, format=None, show_id=False, engine=None) -> None:
""" """
Shows a visual representation of the SFG using the default system viewer. Shows a visual representation of the SFG using the default system viewer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment