marvel-nccr / ansible-role-aiida

An ansible role that installs and configures AiiDA on Ubuntu.
Other
2 stars 5 forks source link

jupyter is missing react component #40

Closed chrisjsewell closed 4 years ago

chrisjsewell commented 4 years ago

Copied from https://github.com/aiidateam/aiida-tutorials/issues/241

It seems the jupyter notebook version we are using is missing some react component, leading to errors like

404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.40ms referer=http://localhost:8888/tree?token=487bb33a0f44488ae91e98424ab6aa7d6c4dfcbdbbe95254

when using the jupyter file browser.

The solution seems to be:

wget https://unpkg.com/react-dom@16/umd/react-dom.production.min.js
cp react-dom.production.min.js /home/max/.virtualenvs/aiida/lib/python3.6/site-packages/notebook/static/components/react/

(worked for me on the VM).

See https://github.com/jupyter/notebook/pull/4772 for more info