"Injected Parameters" code cell no longer inherits from "parameters" code cell #11990
Labels
bug
Something isn't working
jupyter
parameters
regression
Functionality that used to work but now is broken.
triaged-to
Issues that were not self-assigned, signals that an issue was assigned to someone.
Milestone
Until 1.6.33, the "injected parameters" code cell inherited from the "parameters" code cell, but that's no longer the case starting with 1.6.34 which means the "injected parameters" code cell is always printed regardless of the settings set in the "parameters" code cell.
Take:
Using:
Discussed in #11988
Originally posted by multimeric January 30, 2025
Description
Consider the following Quarto document which depends on the use of a username and password. We don't want to hardcode our authentication details into the notebook for security reasons, so we have added them as parameters. We have also added
echo: false
to the parameters block with the intention of hiding the username and password.However, when we render this notebook, it appears as follows:
The parameter definition block has been successfully hidden, but the parameter values have not. Unfortunately there is no obvious way to hide it, despite it being security critical to do so.
One workaround I've discovered is to make the default computation block hidden, by adding this to the YAML header:
This works, but has the downside that we now have to
echo: true
every subsequent block that we want to show, which is most of them.I wonder if there is a better way to stop my parameters showing up?
This question/issue/feature request relates to #723 (comment), the status of which is not clear.
The text was updated successfully, but these errors were encountered: