Question
I tried looking in the docs for this but I could not find any options on how to hide the output of a specific notebook cells. Did I miss something?
Motivation
The reason I'm asking is because I'm currently working on an examples gallery with Plotly and I sometimes want to have cells with something like:
fig.update_layout(
foo="Bar",
bar="Foo",
)
but since update_layout return a plotly figure, this is automatically captured by Sphinx-Gallery and include in the output.
A workaround would be to assign it back to a variable:
fig = fig.update_layout(
foo="Bar",
bar="Foo",
)
but I want to be consistent and follow the same standards used throughout the Plotly official docs (they always threat the Figure object as mutable and never reassign back to a fig variable). See this for instance.
Question
I tried looking in the docs for this but I could not find any options on how to hide the output of a specific notebook cells. Did I miss something?
Motivation
The reason I'm asking is because I'm currently working on an examples gallery with Plotly and I sometimes want to have cells with something like:
but since
update_layoutreturn a plotly figure, this is automatically captured by Sphinx-Gallery and include in the output.A workaround would be to assign it back to a variable:
but I want to be consistent and follow the same standards used throughout the Plotly official docs (they always threat the
Figureobject as mutable and never reassign back to afigvariable). See this for instance.