-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if %s is not present in prompt string format #442
Comments
Thanks for the suggestion! This would be a breaking change though, and would make many users angry, so I would need a really good reason to do it.
I wouldn't recommend hiding the prompts in the first place, but if you insist, you still shouldn't do it with For a more reliable method, see https://nbsphinx.readthedocs.io/en/latest/custom-css.html. |
Ya I thought so. This is why I suggested testing for Thanks for the additional information. You rock at supporting users 🥇 |
Thanks! I don't fully understand your proposal. Can you please elaborate? |
Thanks, #446 clears up what you mean! |
Hey,
I was trying to hide the prompt by setting an empty string to
nbsphinx_input_prompt
. This results in aTypeError
on:nbsphinx/src/nbsphinx.py
Line 1065 in 77f305b
The blame is the
%
format. Would you consider switching toformat
asking user to set the string as"In [{}]"
rather than"In [%s]"
. This will be more robust, see:Another possibility would be to test for
%s
.Note: I use that workaround for my initial purpose.
The text was updated successfully, but these errors were encountered: