Git Product home page Git Product logo

Comments (4)

T4rk1n avatar T4rk1n commented on May 20, 2024

You need to set app.scripts.config.serve_locally=True for it to serve the modified package.

I recommend the following python environment when developping:

  • Create a new empty python project with a virtual env.
  • Clone all dash repo you need.
  • Install them locally on the virtual env with pip install -e path/to/repo. You may to reinstall dash-renderer after installing dash with this method to get the local install of dash-renderer.
  • If using pycharm, you need to invalidate the cache/restart to reindex the packages.

I then open all the repo in the same pycharm project so I can debug the javascript easily (the last opened pycharm window is the one that connect to the javascript debugger).

from dash-renderer.

valentijnnieman avatar valentijnnieman commented on May 20, 2024

You need to set app.scripts.config.serve_locally=True for it to serve the modified package.

I did. It works on production mode, but when switching to development (using debug=True) it doesn't work anymore, it takes another version. I just have a copy of dash_core_components-0.33.0rc1.tar.gz in the root of the project and reference that in dev-requirements.txt. What I don't get is that it works fine in production mode, but not in development! Thanks for your help though, I'll try a fresh venv and see if that fixes anything.

from dash-renderer.

valentijnnieman avatar valentijnnieman commented on May 20, 2024

Nevermind, I'm a big dummy! I forgot to build the dash_core_components dev bundle, so the sdist package only had the production one 🙈 I forgot about it being separated now. Thanks for your help @T4rk1n

from dash-renderer.

T4rk1n avatar T4rk1n commented on May 20, 2024

That's why I put the build:js-dev in prepublish 🙈, but prepublish doesn't run on setup.py sdist.

from dash-renderer.

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.