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

Cells do not shrink when some sidebar content overlaps with them #248

Closed
choldgraf opened this issue Nov 4, 2020 · 0 comments · Fixed by #677
Closed

Cells do not shrink when some sidebar content overlaps with them #248

choldgraf opened this issue Nov 4, 2020 · 0 comments · Fixed by #677
Labels
bug Something isn't working 🏷️ design Related to look and feel of the theme

Comments

@choldgraf
Copy link
Member

choldgraf commented Nov 4, 2020

Sometimes there is sidebar content that should reduce the width of a cell's inputs or outputs (e.g. the {sidebar} directive). However, it seems that this doesn't cause the myst-nb cells to shrink.

I'm also not sure why the copybutton icon isn't moving over either, but I'm gonna open an issue in sphinx-copybutton for this (executablebooks/sphinx-copybutton#100).

An example:

image

generated with this markdown ````md --- jupytext: cell_metadata_filter: -all formats: md:myst text_representation: extension: .md format_name: myst format_version: 0.12 jupytext_version: 1.6.0 kernelspec: display_name: Python 3 language: python name: python3 ---

MyST Notebooks

Sphinx Copybutton works with MyST Notebooks as well. See below for the code inputs and outputs:

Regular cells

A regular cell:

% Note: I'm only including these sidebars to test that the copybutton stays within the code cell.

This cell doesn't display any outputs.
print("hi")

Notebook cells

Next we'll demo notebook cells to see if these are rendered correctly.

This cell will be executed and its outputs stored.
print("hi")
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🏷️ design Related to look and feel of the theme
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant