diff --git a/.gitignore b/.gitignore index 3a011d1..f62fd8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,98 +1,4 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -doc/build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# dotenv -.env - -# virtualenv -.venv -venv/ -ENV/ - -# Spyder project settings -.spyderproject - -# Rope project settings -.ropeproject - -# Added -unused/ +venv +*.pyc +.DS_Store vv diff --git a/config.py b/config.py new file mode 100644 index 0000000..8969beb --- /dev/null +++ b/config.py @@ -0,0 +1,60 @@ +import os + +# Replace with the name of your Dash app +# This will end up being part of the URL of your deployed app, +# so it can't contain any spaces, capitalizations, or special characters +# +# This name MUST match the name that you specified in the +# Dash App Manager +DASH_APP_NAME = 'dash-oil-and-gas' + +# Set to 'private' if you want to add a login screen to your app +# You can choose who can view the app in your list of files +# at /organize. +# Set to 'public' if you want your app to be accessible to +# anyone who has access to your Plotly server on your network without +# a login screen. +# Set to 'secret' if you want to add a login screen, but allow it +# to be bypassed by using a secret "share_key" parameter. +DASH_APP_PRIVACY = 'public' + +# Dash On-Premise is configured with either "Path based routing" +# or "Domain based routing" +# Ask your server administrator which version was set up. +# If a separate subdomain was created, +# then set this to `False`. If it was not, set this to 'True'. +# Path based routing is the default option and most On-Premise +# users use this option. +PATH_BASED_ROUTING = True + +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# This section only needs to be filled out # +# if DASH_APP_PRIVACY is set to 'private' or 'secret' # +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + +# Fill in with your Plotly On-Premise username +os.environ['PLOTLY_USERNAME'] = 'your-plotly-username' + +# Fill in with your Plotly On-Premise API key +# See /settings/api to generate a key +# If you have already created a key and saved it on your own machine +# (from the Plotly-Python library instructions at https://plot.ly/python/getting-started) +# then you can view that key in your ~/.plotly/.config file +# or inside a Python session with these commands: +# import plotly +# print(plotly.tools.get_config_file()) +os.environ['PLOTLY_API_KEY'] = 'your-plotly-api-key' + +# Fill in with your Plotly On-Premise domain +os.environ['PLOTLY_DOMAIN'] = 'https://your-plotly-domain.com' +os.environ['PLOTLY_API_DOMAIN'] = os.environ['PLOTLY_DOMAIN'] + +# Fill in with the domain of your Dash subdomain. +# This matches the domain of the Dash App Manager +PLOTLY_DASH_DOMAIN='https://your-dash-manager-plotly-domain.com' + +# Keep as True if your SSL certificates are valid. +# If you are just trialing Plotly On-Premise with self signed certificates, +# then you can set this to False. Note that self-signed certificates are not +# safe for production. +os.environ['PLOTLY_SSL_VERIFICATION'] = 'True' diff --git a/requirements.txt b/requirements.txt index 4a53510..e16c752 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ pandas-datareader==0.3.0.post0 dash-core-components==0.18.1 dash-html-components==0.8.0 dash-renderer==0.11.3 -dash==0.21.0 +dash==0.26.0 gunicorn==19.7.1 flask==0.12 flask_cors