docker run -ti -p 8888:8888 docker_image_name
jupyter notebook --ip '*' ---port 8888 --allow-root
error:
in client:
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.
in server:
404 GET /nbextensions/widgets/notebook/js/extension.js?v=20170619093750
公司proxy擋ipython notebook 執行
顯示圖片 IOPub data rate exceeded.
--NotebookApp.iopub_data_rate_limit=1.0e10
reference
https://stackoverflow.com/questions/43288550/iopub-data-rate-exceeded-when-viewing-image-in-jupyter-notebook
2017年6月19日 星期一
2017年6月14日 星期三
ipython can't reload module when run modified file
fileA.py
import fileB
...
fileB.py
print (0)
in IPYTHON
First time, when i run fileA.py, it print 0
then, i modify the fileB.py
print(1)
second time, run fileA.py, it also print 0
because the run magic function do not use deepreload
reference:
https://stackoverflow.com/questions/13150259/ipython-re-importing-modules-when-using-run
http://ipython.org/ipython-doc/dev/api/generated/IPython.lib.deepreload.html
import fileB
...
fileB.py
print (0)
in IPYTHON
First time, when i run fileA.py, it print 0
then, i modify the fileB.py
print(1)
second time, run fileA.py, it also print 0
because the run magic function do not use deepreload
reference:
https://stackoverflow.com/questions/13150259/ipython-re-importing-modules-when-using-run
http://ipython.org/ipython-doc/dev/api/generated/IPython.lib.deepreload.html
訂閱:
文章 (Atom)