Giter VIP home page Giter VIP logo

Comments (7)

Hongchenglong avatar Hongchenglong commented on May 3, 2024

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

from 0xdeca10b.

juharris avatar juharris commented on May 3, 2024

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?

from 0xdeca10b.

ali-alhwayzee avatar ali-alhwayzee commented on May 3, 2024

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

from 0xdeca10b.

juharris avatar juharris commented on May 3, 2024

@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.

from 0xdeca10b.

ali-alhwayzee avatar ali-alhwayzee commented on May 3, 2024

@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

from 0xdeca10b.

nkader12 avatar nkader12 commented on May 3, 2024

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

from 0xdeca10b.

ahmed82 avatar ahmed82 commented on May 3, 2024

Network tab returning 200, check the server response.

from 0xdeca10b.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.