Silently install and enable nbextensions

Viewed 159

When I have extensions enabled, I get a tremendous amount of output when I do the following:

$ jupyter contrib nbextension install --sys-prefix  --log-level=50
$ jupyter nbextension install --py full_width --sys-prefix  --log-level=50
... various extensions ...


| b'Enabling: jupyter_nbextensions_configurator\n- Writing config:

This output buffers very slowly, like tens of minutes and often crashes my editor. I'd just rather silence all output. I figured the log_level command would do that, but it did not seem to.

How can I disable all output from jupyter_nbextensions?

1 Answers

Read this:

%%capture

Try

%%capture
!jupyter contrib nbextension install --sys-prefix  --log-level=50
!jupyter nbextension install --py full_width --sys-prefix  --log-level=50
Related