Bug#1003722: jupyter-notebook: blank page in firefox

2022-01-17 Thread Peter Ralph
This happened to me, but uninstalling and re-installing fixed it: see below.

I also got a blank page with the same "exports is not defined" error
after upgrading jupyter to 6.4.5-3. Next, I uninstalled the debian
package and installed jupyter from pip:
  pip3 install jupyter
... and still had the same problem. So, I removed the pip version
(`pip3 uninstall jupyter`) and re-installed it from debian... and now
it works. Here's the versions of packages I have now:
```
$ apt list --installed | grep jupyter

jupyter-core/unstable,now 4.9.1-1 all [installed,automatic]
jupyter-nbextension-jupyter-js-widgets/unstable,now 6.0.0-8 all
[installed,automatic]
jupyter-notebook/unstable,now 6.4.5-3 all [installed]
python3-jupyter-client/unstable,now 7.1.0-1 all [installed,automatic]
python3-jupyter-core/unstable,now 4.9.1-1 all [installed,automatic]
python3-jupyterlab-pygments/unstable,now 0.1.2-8 all [installed,automatic]
```
and here are the versions of all the packages that got installed when
I re-installed jupyter-notebook:
```
jupyter-core/unstable,now 4.9.1-1 all [installed,automatic]
jupyter-nbextension-jupyter-js-widgets/unstable,now 6.0.0-8 all
[installed,automatic]
libjs-backbone/unstable,now 1.4.0~dfsg+~1.4.5-2 all [installed,automatic]
libjs-bootstrap-tour/unstable,now 0.12.0+dfsg-3 all [installed,automatic]
libjs-codemirror/unstable,now 5.63.3+~cs5.83.9-1 all [installed,automatic]
libjs-es6-promise/unstable,now 4.2.8-9 all [installed,automatic]
libjs-jed/unstable,now 1.1.1-3 all [installed,automatic]
libjs-jquery-typeahead/unstable,now 2.11.0+dfsg1-3 all [installed,automatic]
libjs-marked/unstable,now 4.0.9+ds+~4.0.1-2 all [installed,automatic]
libjs-moment/unstable,now 2.29.1+ds-3 all [installed,automatic]
libjs-requirejs-text/unstable,now 2.0.12-1.1 all [installed,automatic]
libjs-requirejs/unstable,now 2.3.6+ds-1 all [installed,automatic]
libjs-text-encoding/unstable,now 0.7.0-4 all [installed,automatic]
libjs-xterm/unstable,now 3.8.1+~cs0.9.0-1 all [installed,automatic]
node-jed/unstable,now 1.1.1-3 all [installed,automatic]
python3-argon2/unstable,now 21.1.0-1+b1 amd64 [installed,automatic]
python3-bleach/unstable,now 4.1.0-1 all [installed,automatic]
python3-entrypoints/unstable,now 0.3-10 all [installed,automatic]
python3-ipykernel/unstable,now 6.6.1-1 all [installed,automatic]
python3-ipywidgets/unstable,now 6.0.0-8 all [installed,automatic]
python3-jupyter-client/unstable,now 7.1.0-1 all [installed,automatic]
python3-jupyterlab-pygments/unstable,now 0.1.2-8 all [installed,automatic]
python3-nbclient/unstable,now 0.5.6-2 all [installed,automatic]
python3-nbconvert/unstable,now 6.3.0-1 all [installed,automatic]
python3-nest-asyncio/unstable,now 1.5.4-1 all [installed,automatic]
python3-notebook/unstable,now 6.4.5-3 all [installed,automatic]
python3-pandocfilters/unstable,now 1.5.0-1 all [installed,automatic]
python3-prometheus-client/unstable,now 0.9.0-1 all [installed,automatic]
python3-send2trash/unstable,now 1.6.0~b1+git20210122.2eb3242-1 all
[installed,automatic]
python3-terminado/unstable,now 0.12.1-1 all [installed,automatic]
python3-testpath/unstable,now 0.5.0+dfsg-1 all [installed,automatic]
python3-widgetsnbextension/unstable,now 6.0.0-8 all [installed,automatic]
python3-zmq/unstable,now 22.3.0-1+b1 amd64 [installed,automatic]
```

Hope this helps, and let me know if I can provide more information.

- peter

> I can confirm I get a JS error upon starting 'jupyter notebook' from the
> CLI using either Firefox:
>
> Uncaught ReferenceError: exports is not defined
>  
> http://localhost:/static/tree/js/main.min.js?v=1165e50a1bd56de1d3cb2eb1f607c410d26e4dc418d1e016a4a3721ca5d697af4ef59e61b3be7082890269c3728083992695ad6156881a27d4b45d88802a4e8b:13852



Bug#1003722: jupyter-notebook: blank page in firefox

2022-01-15 Thread Yuri D'Elia
Package: jupyter-notebook
Version: 6.4.5-3
Followup-For: Bug #1003722

This should be higher priority.

I can confirm I get a JS error upon starting 'jupyter notebook' from the
CLI using either Firefox:

Uncaught ReferenceError: exports is not defined
 
http://localhost:/static/tree/js/main.min.js?v=1165e50a1bd56de1d3cb2eb1f607c410d26e4dc418d1e016a4a3721ca5d697af4ef59e61b3be7082890269c3728083992695ad6156881a27d4b45d88802a4e8b:13852

Or chrome:

marked.js:14 Uncaught ReferenceError: exports is not defined
at marked.js:14:1

This happens when loading the default entry page http://localhost:/tree

A relevant marked.js bug seems to be #1003601 which seems already fixed.
However jupiter might be bundling a broken version?

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (800, 'experimental'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jupyter-notebook depends on:
ii  init-system-helpers  1.61
ii  jupyter-core 4.9.1-1
ii  python3  3.9.8-1
ii  python3-notebook 6.4.5-3

jupyter-notebook recommends no packages.

jupyter-notebook suggests no packages.



Bug#1003722: jupyter-notebook: blank page in firefox

2022-01-14 Thread Jörg-Volker Peetz

Package: jupyter-notebook
Version: 6.4.5-3
Severity: normal
X-Debbugs-Cc: none, J-V Peetz 

Dear Debian Python Team,

with firefox  (96.0-1 or 95.0.1-1) just a blank page is shown when calling the 
URL of the notebook server startet with `jupyter notebook --port=8177 --no-browser`.


Any suggestions?

Regards,
Jörg.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'unstable'), (5, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.13 (SMP w/8 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages jupyter-notebook depends on:
ii  init-system-helpers  1.61
ii  jupyter-core 4.9.1-1
ii  python3  3.9.8-1
ii  python3-notebook 6.4.5-3

jupyter-notebook recommends no packages.

jupyter-notebook suggests no packages.

-- no debconf information