-
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
[BUG]: Jupyter help magic unconverted unicode character #330
Comments
Thanks for the report! I've known this problem for quite some time already and I've even started working on it on the I hope I can finish this at some point ...
Those outputs are generated by JupyterLab. It's good to see that more people are using JupyterLab and that this problem is finally reported! Unrelated to this issue: I've noticed spurious scroll bars (or rather scroll buttons) in your HTML screenshot. |
The scrollbars are only shown Chrome (not in FireFox) and are displayed due to an overflow caused by |
After some playing around, the following div.nbinput div.input_area,
div.nboutput div.output_area {
padding: 0 !important;
}
div.nbinput,
div.nbinput div.prompt,
div.nbinput div.input_area,
div.nbinput div[class*="highlight"],
div.nbinput div[class*="highlight"] pre,
div.nboutput,
div.nbinput div.prompt,
div.nbinput div.output_area,
div.nboutput div[class*="highlight"],
div.nboutput div[class*="highlight"] pre {
padding: 0.2em !important;
a.copybtn {
width: 0.8em;
height: 0.8em;
}
}
a.copybtn {
padding: 0;
}
.prompt.highlight-none.notranslate {
a.copybtn {
display: none;
}
} compiled div.nbinput div.input_area,
div.nboutput div.output_area {
padding: 0 !important;
}
div.nbinput,
div.nbinput div.prompt,
div.nbinput div.input_area,
div.nbinput div[class*="highlight"],
div.nbinput div[class*="highlight"] pre,
div.nboutput,
div.nbinput div.prompt,
div.nbinput div.output_area,
div.nboutput div[class*="highlight"],
div.nboutput div[class*="highlight"] pre {
padding: 0.2em !important;
}
div.nbinput a.copybtn,
div.nbinput div.prompt a.copybtn,
div.nbinput div.input_area a.copybtn,
div.nbinput div[class*="highlight"] a.copybtn,
div.nbinput div[class*="highlight"] pre a.copybtn,
div.nboutput a.copybtn,
div.nbinput div.prompt a.copybtn,
div.nbinput div.output_area a.copybtn,
div.nboutput div[class*="highlight"] a.copybtn,
div.nboutput div[class*="highlight"] pre a.copybtn {
width: 0.8em;
height: 0.8em;
}
a.copybtn {
padding: 0;
}
.prompt.highlight-none.notranslate a.copybtn {
display: none;
} Haven't found any buggy outputs for that yet. Note: The |
@s-weigand Thanks for the work-around. I've created #333, hoping that we can solve this without having to add a ton of CSS stuff to each project. |
@s-weigand I've taken a stab at the original issue: #348. There is still a problem, though. If you have an idea how to solve this, please comment over there. |
@s-weigand OK, I've tried another approach: #351. Can you please check if that works for you? |
When using jupyter help magic (
?
), the output gets messed up, since jyputer internally wraps unicode characters around parts of the output to format it.I think this is why it is also excluded when setting
nbsphinx_execute = "always"
.The problem should be solvable with a
re.sub()
.Expected/Notebook render:
Actual render HTML:
Actual render PDF:
Json representation of the cell:
nbsphinx==0.4.2
The text was updated successfully, but these errors were encountered: