Closed edasmalchi closed 3 months ago
Tried it out last week, was able to inject the "full-width"
tag using the portfolio script but speedmaps didn't render properly. Reverted back for now and will revisit when time allows
tags
(radio button should be checked)cell metadata
box says tags = {["tags"]}
...it resets and doesn't hold the full-width
setting, but portfolio.py
will set that metadata again.portfolio.py
does do remove-input
as a similar tag.@tiffanychu90 maybe we can close this one? Looks like you've set it up to do full-width
by default, which is fine by me!
@tiffanychu90 maybe we can close this one? Looks like you've set it up to do
full-width
by default, which is fine by me!
I think it has a workaround - which is someone manually tagging the cells (see pic), and then the portfolio.py
can pick up that tag and overwrite it.
Where does your feature apply? Select from the below, and be sure to affix the appropriate label to this issue (e.g.
dataset
,jupyterhub
,metabase
,analytics.calitp.org
)Is your feature request related to a problem? Please describe. We've updated to the latest JupyterBook version, which makes things a little narrower by default. However, it also includes a way to designate cell outputs for additional width via tags.
Describe the solution you'd like Analysts able to specify cells for additional width (and possibly other page layout controls such as sidebar) when running parameterized notebooks via the portfolio script.
Describe alternatives you've considered
%%full_width
to signal the portfolio script to append the"full-width"
tag to that cell. Requires corresponding change to calitp_data_analysis.magicssidebar
as well.%%capture_parameters
cell magic~ and portfolio logic. Revise portfolio script to append all tags provided in an iterable passed via ~capture_parameters~, i.e.output
{"organization_name": "Santa Barbara Metropolitan Transit District", "jupyterbook_append_tags": ["full-width"]}