Git Product home page Git Product logo

Comments (8)

henripal avatar henripal commented on May 30, 2024

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.

dmitriy-serdyuk avatar dmitriy-serdyuk commented on May 30, 2024

There are no experiments
screen shot 2018-03-20 at 1 43 30 pm

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.

henripal avatar henripal commented on May 30, 2024

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.

dmitriy-serdyuk avatar dmitriy-serdyuk commented on May 30, 2024

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.

henripal avatar henripal commented on May 30, 2024

Something strange is happening with the CORS on your setup.

  1. Are you running everything locally?
  2. 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.

dmitriy-serdyuk avatar dmitriy-serdyuk commented on May 30, 2024

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.

henripal avatar henripal commented on May 30, 2024

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.

dmitriy-serdyuk avatar dmitriy-serdyuk commented on May 30, 2024

Thank you, this fixes my issue.

from labnotebook.

Related Issues (12)

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.