-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serve_locally by default #722
Conversation
# pylint: disable=no-init, too-few-public-methods | ||
class config: | ||
infer_from_layout = True | ||
serve_locally = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way we did this before, despite the fact that Scripts
was instantiated, Scripts.config
was a singleton. Mostly this is OK, dunno if there will ever be a reason to put two Scripts
instances in one Python session, but it caused our test cases to be coupled to each other. I had to change this to an instance when I took out all the otherwise superfluous overrides in our test cases.
tests/test_resources.py
Outdated
@@ -48,6 +48,7 @@ def test_external(self): | |||
) | |||
app.layout = dcc.Markdown() | |||
app.scripts.config.serve_locally = False | |||
app.scripts.config.xxx = 123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hun?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Senator, I do not recall.
c096aa1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw it at the time and had assumed it was to test for acceptance of randomly-named config keys :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃
diffs look like noise.. 🙄 |
Flipping one of the remaining switches for #469
Closes #284
Closes https://github.com/plotly/dash-core/issues/10