question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jupyter cell output cluttered with empty output with unknown origin

See original GitHub issue

The problem

docarray mapping functions in jupyter notebooks (VS Code and original jupyter) seem to produce empty output that is printed to the cell output.

This leads to the cell output becoming extremely long and error messages etc very hard to locate.

The empty output for a short loop: empty-output

The empty output seems to scale with the number of loop iterations.

Attempted solutions

Read the documentation carefully (I’m new to docarray 😁 ). But didn’t find a reference.

Set show_progress = False where possible (although apparently already the default). But unsurprisingly this didn’t help.

Minimal example to reproduce the behavior

Happy about any pointers! 😄

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samsjacommented, Jul 5, 2022

@eschmidt42 I can reproduce the visual bug, thank you for the great reproducible code ! I will investigate what it going on this definitely looks like a nasty bug that only happen under very particular circumstances

0reactions
eschmidt42commented, Jul 4, 2022

Hi @samsja ,

the environment.yml says:

  - jupyter=1.0.0=py39hf3d152e_7
  - jupyter_client=7.0.6=pyhd8ed1ab_0
  - jupyter_console=6.4.4=pyhd8ed1ab_0
  - jupyter_core=4.10.0=py39hf3d152e_0
  - jupyterlab_widgets=1.1.1=pyhd8ed1ab_0

I think to get the same env one could use:

  • git clone https://github.com/eschmidt42/docarray-cell-output-issue.git (contains an environment.yml and poetry files,
  • cd into the new dir,
  • conda: conda env create -f environment.yml or
  • poetry (my default): poetry install with the pyproject.toml and poetry.lock in your directory.

Thank you all for looking at this! 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - IPython Notebook - early exit from cell - Stack Overflow
Just import 'exit' from the code beneath into your jupyter notebook (IPython notebook) and calling 'exit()' should work. It will exit and letting...
Read more >
Output truncated with no way to view all output in the notebook ...
Since the 1.59 update the output of cells in an interactive python window is truncated if it is longer than 30 lines. The...
Read more >
Tutorial: Advanced Jupyter Notebooks - Dataquest
Providing the inline argument instructs IPython to show Matplotlib plot images inline, within your cell outputs, enabling you to include charts ...
Read more >
Parameterizing and automating Jupyter notebooks with ...
This command is telling papermill to execute the input notebook papermill_example1.ipynb and write the output to papermill_matt.ipynb , while setting the ...
Read more >
How to clear the Jupyter Notebook outputs automatically?
One way to solve this problem is to manually clear the output of every file that has been under modification and then stage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found