We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After converting the attached notebook idtest.ipynb.txt containing this content:
from IPython.display import display_javascript
display_javascript("console.log(element.id)", raw=True)`
with the following command to html:
jupyter nbconvert --to html --execute idtest.ipynb
the generated output idtest.html.txt contains a <div> for each display_javascript() call with the same id:
<div>
<div id="dd594bf5-4609-4eb6-92a7-5521f50e2bfe" class="jp-RenderedJavaScript jp-OutputArea-output " data-mime-type="application/javascript"> ... <div id="dd594bf5-4609-4eb6-92a7-5521f50e2bfe" class="jp-RenderedJavaScript jp-OutputArea-output " data-mime-type="application/javascript">
According to the template in base.html.j2 the <div>s' ids are intended to be unique:
base.html.j2
{% set div_id = uuid4() %} <div id="{{ div_id }}" class="output_subarea output_javascript {{ extra_class }}">
Nbconvert version: 6.4.5
The text was updated successfully, but these errors were encountered:
Fixed unique div ids in lab template, fixed #1759 (#1761)
5c20f45
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Backport PR jupyter#1761: Fixed unique div ids in lab template, fixed j…
763c08d
…upyter#1759
Backport PR #1761 on branch 6.x (Fixed unique div ids in lab template, …
f50a817
…fixed #1759) (#1839) Co-authored-by: David Vegh <61405792+veghdev@users.noreply.github.com>
Successfully merging a pull request may close this issue.
After converting the attached notebook idtest.ipynb.txt
containing this content:
with the following command to html:
the generated output idtest.html.txt contains a
<div>
for each display_javascript() call with the same id:According to the template in
base.html.j2
the<div>
s' ids are intended to be unique:Nbconvert version: 6.4.5
The text was updated successfully, but these errors were encountered: