Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Use Dash offline (Dash-Bootstrap-Components)

$
0
0

Is there a trick to using Dash offline? Sometimes I wish to work where there is no internet, but my app crashes because it is trying to load dash-bootstrap-components from the CDN.

dash-bootstrap-components is in my requirements.txt file, but it is still trying to load it from a CDN

Is there a way around this?

My app.py looks like this:

import dash
import dash_bootstrap_components as dbc
from dash_extensions.enrich import DashProxy, MultiplexerTransform, NoOutputTransform
import logging
import os
BASE_PATH = os.getenv('BASE_PATH_NAME', '/')
app = DashProxy(__name__, transforms=[MultiplexerTransform(), NoOutputTransform()], external_stylesheets=[
                dbc.themes.BOOTSTRAP, 'cb-dash.css'], url_base_pathname=BASE_PATH, suppress_callback_exceptions=True)
server = app.server
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images