microsoft/0xDeCA10B

http://localhost:5006/simulate_imdb_perceptron is a blank page

Hongchenglong opened this issue · 7 comments

When I visit http://localhost:5006/simulate_imdb_perceptron, the page is blank.
Is this normal? If not, how can I fix it?

The log is as follows:

(decai-simulation) root@f8d0a0404b4d:~/workspace/0xDeCA10B/simulation# bokeh serve decai/simulation/simulate_imdb_perceptron.py
2022-08-09 11:33:25,711 Starting Bokeh server version 2.4.3 (running on Tornado 6.2)
2022-08-09 11:33:25,719 User authentication hooks NOT provided (default user enabled)
2022-08-09 11:33:25,733 Bokeh app running at: http://localhost:5006/simulate_imdb_perceptron
2022-08-09 11:33:25,734 Starting Bokeh server with process id: 40
2022-08-09 11:33:52,321 WebSocket connection opened
2022-08-09 11:33:52,329 ServerConnection created
2022-08-09 11:33:52,364 404 GET /favicon.ico (172.17.0.1) 2.53ms

Thanks for trying the project! Sorry for taking so long to get back to you. I meant to try it myself but got busy. Until I get the chance to try it, some more details would help. Please share a screenshot of what you see in the browser on the page. At first I was suspecting that it wasn't connecting, maybe a Docker port forwarding issue but I see the GET /favicon.ico request went through, so I suspect it's something else. Also, is there anything in the browser's DevTools Console?

Same issue :
bokeh serve decai/simulation/simulate_imdb_perceptron.py
2023-03-03 23:44:32,610 Starting Bokeh server version 3.0.3 (running on Tornado 6.2)
2023-03-03 23:44:32,825 User authentication hooks NOT provided (default user enabled)
2023-03-03 23:44:32,828 Bokeh app running at: http://localhost:5006/simulate_imdb_perceptron
2023-03-03 23:44:32,828 Starting Bokeh server with process id: 121620
2023-03-03 23:44:38.917433: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-03 23:44:40,651 WebSocket connection opened
2023-03-03 23:44:40,652 ServerConnection created
2023-03-03 23:44:50,533 WebSocket connection closed: code=1001, reason=None
Screenshot from 2023-03-07 12-05-24

@ali-alhwayzee were you using the Docker container?
https://github.com/microsoft/0xDeCA10B/tree/main/simulation#docker-setup

I suspect it could be an issue with the versions of dependencies.

@juharris thanks
added / updated specs:
- bokeh
- mkl
- mkl-service
- numpy
- pandas
- phantomjs
- python=3.8
- scikit-learn
- scipy
- tensorflow

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
hdf5-1.14.0                |nompi_h5231ba7_103         3.4 MB  conda-forge
lcms2-2.15                 |       hfd0df8a_0         235 KB  conda-forge
platformdirs-3.1.0         |     pyhd8ed1ab_0          17 KB  conda-forge
setuptools-67.5.1          |     pyhd8ed1ab_0         566 KB  conda-forge
------------------------------------------------------------
                                       Total:         4.2 MB

Downloading and Extracting Packages
hdf5-1.14.0 | 3.4 MB | ###################################### | 100%
lcms2-2.15 | 235 KB | ###################################### | 100%
setuptools-67.5.1 | 566 KB | ###################################### | 100%
platformdirs-3.1.0 | 17 KB | ###################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate decai-simulation

To deactivate an active environment, use

$ conda deactivate

update: conda update -n base -c defaults conda
Retrieving notices: ...working... done

Downloading and Extracting Packages
conda-repo-cli-1.0.2 | 114 KB | ###################################### | 100%
zstandard-0.19.0 | 474 KB | ###################################### | 100%
ruamel.yaml.clib-0.2 | 140 KB | ###################################### | 100%
conda-package-stream | 26 KB | ###################################### | 100%
conda-package-handli | 267 KB | ###################################### | 100%
conda-23.1.0 | 942 KB | ###################################### | 100%
ruamel.yaml-0.17.21 | 178 KB | ###################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Retrieving notices: ...working... done

sudo docker run --rm -it -p 5006:5006 -v ${PWD}:/root/workspace/0xDeCA10B/simulation --name decai-simulation mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-simulation bash
(decai-simulation) root@c903d9566f68:~/workspace/0xDeCA10B/simulation# bokeh serve decai/simulation/simulate_imdb_perceptron.py
2023-03-09 09:43:21,998 Starting Bokeh server version 3.0.3 (running on Tornado 6.2)
2023-03-09 09:43:22,314 User authentication hooks NOT provided (default user enabled)
2023-03-09 09:43:22,319 Bokeh app running at: http://localhost:5006/simulate_imdb_perceptron
2023-03-09 09:43:22,319 Starting Bokeh server with process id: 17
2023-03-09 09:43:32,554 WebSocket connection opened
2023-03-09 09:43:32,555 ServerConnection created
2023-03-09 09:44:02,040 WebSocket connection closed: code=1001, reason=None
2023-03-09 09:44:02,240 WebSocket connection opened
2023-03-09 09:44:02,241 ServerConnection created
2023-03-09 09:44:19,126 WebSocket connection closed: code=1001, reason=None
2023-03-09 09:44:19,488 WebSocket connection opened
2023-03-09 09:44:19,488 ServerConnection created

with Same problem blank page

Screenshot from 2023-03-09 13-15-08

Hey @juharris ,

I am also having trouble running the code provided. I get the above errors as well. Can the problem have something to do with the version of bokeh? If not, do you have any other recommendations? Thanks.
Screen Shot 2023-03-17 at 12 49 40 PM

Network tab returning 200, check the server response.