Skip to content
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

Empty template for nbsphinx_input_prompt and nbsphinx_output_prompt lead to TypeError: not all arguments converted during string formatting #10792

Closed
1kastner opened this issue Aug 28, 2022 · 2 comments
Labels

Comments

@1kastner
Copy link

Describe the bug

In my documentation, my idea was to hide the prompts. I wanted to be clever and just use an empty template for nbsphinx_input_prompt and nbsphinx_output_prompt. However, this lead to the following exception: TypeError: not all arguments converted during string formatting.

How to Reproduce

nbsphinx_input_prompt =nbsphinx_output_prompt = ""

Expected behavior

Maybe the filling of the variable could be more forgiving? So %s is only inserted in the template if such a variable is available in the template in the first place? I think this is better than tempering with HTML and CSS.

Your project

not applicable

Screenshots

No response

OS

Win

Python version

3.10

Sphinx version

5.1

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

@1kastner
Copy link
Author

1kastner commented Sep 5, 2022

This was meant to be posted at nbsphinx, somehow I ended up in the wrong tab.

@mgeier
Copy link
Contributor

mgeier commented Sep 5, 2022

There are already some issues/PRs about this topic, feel free to chime in:

spatialaudio/nbsphinx#131
spatialaudio/nbsphinx#185
spatialaudio/nbsphinx#442
spatialaudio/nbsphinx#446

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants