You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using Jupyter Collaboration 3 with JupyterLab 4.3.0, the stream output of a saved notebook will be rendered in one column.
colab-bug3.mp4
Reproduce
Create an environment with JupyterLab 4.3.0 and Jupyter Collaboration 3.0.0
Create a new notebook with the following content:
text="""Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam urnalibero, dictum a egestas non, placerat vel neque. In imperdiet iaculis fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras augue tortor, tristique vitae varius nec, dictum eu lectus. Pellentesque id eleifend eros. In non odio in lorem iaculis sollicitudin. In faucibus ante ut arcu fringilla interdum. Maecenas elit nulla, imperdiet nec blandit et, consequat ut elit."""print(text)
Since in RTC mode, the output text is a list of characters, and this normalize function appends \n to all of them. Removing the '\n' argument of the join function fixes the issue.
trungleduc
changed the title
Stream output is not rendered correct in jupyter-collaboration 3
Stream output is not rendered correctly in jupyter-collaboration 3
Nov 6, 2024
Description
By using Jupyter Collaboration 3 with JupyterLab 4.3.0, the stream output of a saved notebook will be rendered in one column.
colab-bug3.mp4
Reproduce
Expected behavior
The culprit is in this function: https://github.com/jupyterlab/jupyterlab/blob/main/packages/outputarea/src/model.ts#L514
Since in RTC mode, the output text is a list of characters, and this
normalize
function appends\n
to all of them. Removing the'\n'
argument of thejoin
function fixes the issue.Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: