Git Product home page Git Product logo

Comments (3)

benhutchings1 avatar benhutchings1 commented on May 26, 2024 1

@ned2 appreciate the confirmation can stop trying to bodge it now 😆

from dash.

ned2 avatar ned2 commented on May 26, 2024

Unfortunately patterns involving running two Dash instances within the same Python process are no longer supported by Dash. This is because there's a few different bits of global state that Dash uses to track things like callbacks defined with dash.callback (as opposed to app.callback ) and, as you've bumped into, state used by the Pages feature. These have been introduced over time starting some versions of Dash ago.

Here's a post in another repo where I took a stab at identifying all the global state that you could run afoul of trying to run multiple Dash instances in the one process. if you're careful, you could get some use cases to work by avoiding features that make use of them, but in general this is going to be risky, so might be better to fall back to another way of what you're trying to achieve.

from dash.

benhutchings1 avatar benhutchings1 commented on May 26, 2024

@ned2 do you have a recommended approach to fixing this problem?

from dash.

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.