Skip to content

[lecture enhancement] some outputs occupy too many spaces #65

Closed

Description

@shlff

Hi @mmcky and @jstac , I find that there are some outputs of code cells that occupy too many lines and spaces in the following lectures:

Do you think it would be a good idea to find an elegant way to compress the output? I came up with three ideas that we can either

  • fold the output like what we did for long code cells in the RST-version lectures or like what we did for outputs of !pip install --upgrade in every lecture or
  • we can put those outputs just in one output cell or
  • we modify the code a bit to just print some of the results.

e.g., this output list is very long and I just show the very first part (left: RST; right: MYST):
Screen Shot 2021-06-03 at 4 01 23 pm

Activity

  1. mmcky commented on Jun 11, 2021

    @mmcky
    Contributor

    @AakashGfude I think this is happening when the output is of type stream to stdout. It looks like that code-cell output is a series of individual text outputs.

  2. mmcky commented on Jun 11, 2021

    @mmcky
    Contributor

    I have opened a test run for sphinx-book-theme to see how they have handled stream output types

    #67

  3. added
    enhancement
    on Jun 11, 2021
  4. mmcky commented on Jun 11, 2021

    @mmcky
    Contributor

    @AakashGfude this is the same upstream so maybe it is something we should fix there.

    In the meantime @shlff I think we should use output_scroll tag

    https://jupyterbook.org/reference/cheatsheet.html#tags

    Can you submit PR's?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions