-
Notifications
You must be signed in to change notification settings - Fork 130
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
Exclude input/output prompt #126
Comments
If you are only targeting HTML, you can try setting nbsphinx_prompt_width
to 0.
See also #53
I would be interested in your motivations why you want to get rid of the
prompts.
And regarding TemplateExporter.exclude_input_prompt et al.: I'm open to a
PR that enables those options.
|
Setting |
(closing this because it seems like #131 addresses the broader idea of supporting |
I used this formatting trick instead nbsphinx_input_prompt = "%.0s"
nbsphinx_output_prompt = "%.0s" |
Currently (nbsphinx version 0.9.1), the recommended way to remove the prompts in HTML output is via CSS: .nbinput .prompt,
.nboutput .prompt {
display: none;
} See https://nbsphinx.readthedocs.io/en/0.9.1/custom-css.html#For-a-Single-Notebook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, as far as I can tell, there is no way to exclude the input or output prompt (the
In[...]:
andOut[...]:
) from the rendered notebook pages. It looks like this is because they are added manually (instead of deferring to nbconvert; see this line) so there is no way I can figure out to disable them (via theTemplateExporter.exclude_input_prompt
andTemplateExporter.exclude_output_prompt
configuration options in nbconvert). Am I misunderstanding what's really happening? If it is not possible, it would be nice to have this as an option.The text was updated successfully, but these errors were encountered: