200 GET /api/contents?type=directory&_=1477423247957 (::1) 8.34ms
(Here it's fast as it's my home Mac)--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d2a975d6-5c7c-41b2-9967-a1906aba8a3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This very long delay corresponds to the following line (obtained with --debug)200 GET /api/contents?type=directory&_=1477423247957 (::1) 8.34ms
[I 20:20:11.329 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 20:20:11.329 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[D 20:20:11.495 NotebookApp] Using contents: services/contents
[D 20:20:11.725 NotebookApp] 200 GET /tree (::1) 245.02ms
[D 20:20:11.996 NotebookApp] 304 GET /custom/custom.css (::1) 266.03ms
[D 20:20:12.120 NotebookApp] 200 GET /static/services/contents.js?v=20161026202010 (::1) 7.00ms
[D 20:20:12.125 NotebookApp] 200 GET /custom/custom.js?v=20161026202010 (::1) 4.00ms
[D 20:20:12.135 NotebookApp] 200 GET /api/config/tree?_=1477506012044 (::1) 2.00ms
[D 20:20:12.136 NotebookApp] 200 GET /api/config/common?_=1477506012045 (::1) 0.00ms
[D 20:20:12.146 NotebookApp] Native kernel (python3) available from C:\HOMEWARE\anaconda-3-x86_64\lib\site-packages\ipykernel\resources
[D 20:20:12.147 NotebookApp] Native kernel (python3) available from C:\HOMEWARE\anaconda-3-x86_64\lib\site-packages\ipykernel\resources
[D 20:20:12.149 NotebookApp] 200 GET /api/kernelspecs (::1) 10.00ms
[D 20:20:12.150 NotebookApp] 200 GET /api/sessions?_=1477506012046 (::1) 1.00ms
[D 20:20:27.150 NotebookApp] 200 GET /api/contents?type=directory&_=1477506012047 (::1) 14864.17ms
In this case, 14s to display the list of files/folders.
In a notebook run from this folder, I ran
1/
for e in os.scandir('.'):
print(e)
which took 10ms
2/
for e in os.listdir('.'):
print(e)
which took 12ms
About the same and very fast.
So maybe it's just some parasite on this PC...
2/
for e in os.listdir('.'):
print(e)
3/%%timefor e in os.listdir('.'):os.path.isdir(e)print(e)--> 1.03sMuch longer !
[D 08:10:05.172 NotebookApp] Using contents: services/contents
[D 08:10:05.442 NotebookApp] 200 GET /tree (::1) 330.00ms
[D 08:10:05.773 NotebookApp] 304 GET /custom/custom.css (::1) 324.00ms
[D 08:10:05.930 NotebookApp] 200 GET /static/services/contents.js?v=20161031081001 (::1) 7.00ms
[D 08:10:05.935 NotebookApp] 200 GET /custom/custom.js?v=20161031081001 (::1) 4.00ms
[D 08:10:05.938 NotebookApp] 200 GET /static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240 (::1) 2.00ms
[D 08:10:05.948 NotebookApp] 200 GET /api/config/tree?_=1477897805807 (::1) 2.00ms
[D 08:10:05.950 NotebookApp] 200 GET /api/config/common?_=1477897805808 (::1) 1.00ms
[D 08:10:05.961 NotebookApp] Native kernel (python3) available from C:\HOMEWARE\anaconda-3-x86_64\lib\site-packages\ipykernel\resources
[D 08:10:05.962 NotebookApp] Native kernel (python3) available from C:\HOMEWARE\anaconda-3-x86_64\lib\site-packages\ipykernel\resources
[D 08:10:05.965 NotebookApp] 200 GET /api/kernelspecs (::1) 13.00ms
[D 08:10:05.972 NotebookApp] 200 GET /api/sessions?_=1477897805809 (::1) 7.00ms
[D 08:10:30.290 NotebookApp] 200 GET /api/contents?type=directory&_=1477897805810 (::1) 24021.60ms
[D 08:10:32.375 NotebookApp] 200 GET /api/sessions?_=1477897805811 (::1) 0.00ms
[D 08:10:46.468 NotebookApp] 200 GET /api/contents?type=directory&_=1477897805812 (::1) 14091.60ms
[D 11:01:18.471 NotebookApp] Using contents: services/contents
[D 11:01:18.515 NotebookApp] 200 GET /tree (::1) 50.00ms
[D 11:01:18.793 NotebookApp] 200 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c (::1) 274.00ms
[D 11:01:18.795 NotebookApp] 200 GET /static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56 (::1) 2.00ms
[D 11:01:18.801 NotebookApp] 200 GET /custom/custom.css (::1) 3.00ms
[D 11:01:18.803 NotebookApp] 200 GET /static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe (::1) 2.00ms
[D 11:01:18.805 NotebookApp] 200 GET /static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce (::1) 2.00ms
[D 11:01:18.806 NotebookApp] 200 GET /static/style/style.min.css?v=807166c81ded9672f91872a576572dcd (::1) 11.00ms
[D 11:01:18.835 NotebookApp] 200 GET /static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397 (::1) 1.00ms
[D 11:01:18.859 NotebookApp] 200 GET /static/tree/js/main.min.js?v=cee9d5ded70fc8733bb888581c22f633 (::1) 50.00ms
[D 11:01:18.979 NotebookApp] 200 GET /static/services/contents.js?v=20161031110117 (::1) 3.00ms
[D 11:01:18.983 NotebookApp] 200 GET /custom/custom.js?v=20161031110117 (::1) 1.00ms
[D 11:01:18.985 NotebookApp] 200 GET /static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240 (::1) 1.00ms
[D 11:01:18.994 NotebookApp] 200 GET /api/config/tree?_=1477908078912 (::1) 2.00ms
[D 11:01:18.995 NotebookApp] 200 GET /api/config/common?_=1477908078913 (::1) 0.00ms
[D 11:01:19.003 NotebookApp] Native kernel (python3) available from C:\HOMEWARE\anaconda-3-x86_64\lib\site-packages\ipykernel\resources
[D 11:01:19.004 NotebookApp] Native kernel (python3) available from C:\HOMEWARE\anaconda-3-x86_64\lib\site-packages\ipykernel\resources
[D 11:01:19.006 NotebookApp] 200 GET /api/kernelspecs (::1) 8.00ms
[D 11:01:19.009 NotebookApp] 200 GET /static/components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 (::1) 3.00ms
[D 11:01:19.010 NotebookApp] 200 GET /api/sessions?_=1477908078914 (::1) 1.00ms
[D 11:01:28.362 NotebookApp] 200 GET /api/contents?type=directory&_=1477908078915 (::1) 9223.00ms