Comments (8)
Did you select an experiment in the left hand drop down menu, or is the drop down empty? If empty can you open your browser console and see if any errors you could send me?
You can definitely already serve the frontend by following these steps, although running this on a remote server would require tunneling through ssh (that's how I use this)
cd frontend
npm install
npm run dev
You can change the port for your dev server by modifying webpack.config.js
I'm open to other suggestions on how to serve index.html.
from labnotebook.
The browser (Chrome, but I had similar problems with Firefox) gives
Failed to load http://localhost:3000/experiments: The 'Access-Control-Allow-Origin' header has a value 'null' that is not equal to the supplied origin. Origin 'null' is therefore not allowed access.
index.html:1 Uncaught (in promise) kt
from labnotebook.
Any errors when running start_backend
?
What happens when you manually make a request to the backend through your browser: try to connect to localhost:3000/experiments in your browser - do you get a json response?
from labnotebook.
No errors. I get a response that looks fine:
[
{
"completed": true,
"dt": "2018-03-20 13:03",
"final_trainacc": 0.25826979384964,
"final_trainloss": -0.214900482960384,
"final_valacc": 0.126986167686998,
"gpu": 0,
"model_desc": {
"sigma": 0.1
},
"run_id": 5
},
<truncated>
from labnotebook.
Something strange is happening with the CORS on your setup.
- Are you running everything locally?
- Can you provide the most info you can for me to try to replicate the problem, especially OS, Chrome and FF versions - or anything else that is specific to your setup.
Meanwhile you could try serving the API with npm with npm install
and npm run dev
to see if that fixes it.
This is super useful feedback, thanks!
from labnotebook.
I'm running everything locally on MacOS High Sierra 10.13.3. Chrome Version 65.0.3325.162 (Official Build) (64-bit). FF 59.0.1 (64-bit). I installed postgres 10 with brew and labnotebook with pip inside conda, python 3.6.
Thanks for your tool!
from labnotebook.
I was able to reproduce this locally.
To resolve, instead of clicking on index.html
, serve it, for example using python's http.server:
cd frontend
python -m http.server
Then navigate to that address in your browser.
I've reflected this in the README.
Cause: linux and OSX seem to create different headers for "clicked" files, creating CORS problems.
Hope this works!
from labnotebook.
Thank you, this fixes my issue.
from labnotebook.
Related Issues (12)
- With simple pytorch example failed to show all info, except for list of runs HOT 6
- make colors consistent for a given series
- live update still too resource-heavy
- After one start of the backend, it will no longer boot until the system reboots.
- - HOT 2
- Add a config file option
- problem with "start_experiment" HOT 3
- Adding/Removing series when live update is enabled is broken HOT 1
- Error while installing HOT 3
- improve live update performance HOT 1
- some custom field issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labnotebook.