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.

JupyterLab freezes when the output from a shell command exceeds a certain size

See original GitHub issue

Describe the issue When the output from a shell command exceeds a certain size, JupyterLab and classic notebooks just freeze. This can be achieved by simply writing a few 100 KB to stdout: !head -c 118000 </dev/urandom . Printing the same amount of data to stdout using Python does not cause any issues. In fact, Python allows for much larger outputs. This only seems to affect containerized/resource restricted deployments of elyra at the moment since this cannot be reproduced locally on my workstation. Ignore, can reproduce locally on my workstation after a flat install The problem seems to be intermittent as well, there were some cases where on FIRST execution of the command in a cell, it runs through without issue, subsequent execution of the same cell result in a stall.

To Reproduce Steps to reproduce the behavior:

  1. Open Kubeflow’s notebook launcher
  2. Request at least 2 CPUs, (or more if your deployment can allow it)
  3. Launch an instance of elyra/kf-notebook:latest
  4. Open a new jupyter notebook
  5. run !head -c 118000 </dev/urandom

Screenshots or log output If applicable, add screenshots or log output to help explain your problem.

Log Output
Paste the log output here.

image

image

Expected behavior Output from the shell to be displayed in the cell image

Deployment information Describe what you’ve deployed and how:

  • Elyra version: 3.9.1
  • Installation source: kf-notebook image
  • Deployment type: Kubeflow
  • Operating system: linux

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
ptitzlercommented, Jul 11, 2022

I’ve recreated this using a plain JupyterLab deployment configuration that comes with Kubeflow [notebook server] 1.5. Since none of the Elyra extensions is installed this should confirm that this is an upstream issue.

1reaction
ptitzlercommented, Jul 12, 2022

@daschnerm, please subscribe to the issue for updates

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Lab freezes the computer when out of RAM
I've noticed in spyder and jupyter that the freezeup will usually happen when working in another console while a large memory console runs....
Read more >
Built-in magic commands — IPython 8.7.0 documentation
When running a Jupyter notebook, the output from print statements and other displayed objects will appear in the terminal (even matplotlib figures will...
Read more >
Tutorial: Advanced Jupyter Notebooks - Dataquest
Warming up with the basics of shell commands and some handy magics, including a look at debugging, timing, and executing multiple languages.
Read more >
vscode jupyter notebook size limit - You.com | The AI Search ...
When the output of this magic command is too long VSCode suggests opening it in a text editor ( Output exceeds the size...
Read more >
Troubleshooting Vertex AI Workbench - Google Cloud
If your managed notebooks instance isn't executing cells or appears to be frozen, first try restarting the kernel by clicking Kernel from the...
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