-
Notifications
You must be signed in to change notification settings - Fork 351
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
Attempt at adapting example to be usable without Bokeh. Fixes #174 #570
Conversation
…ocks into MNIST-without-Bokeh Merged with Upstream
…dified tests too
@@ -24,7 +24,7 @@ | |||
from blocks.main_loop import MainLoop | |||
|
|||
|
|||
def main(save_to, num_epochs): | |||
def main(save_to, num_epochs, no_bokeh): |
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.
You should probably give a default, no_bokeh=True
here as well, but make sure that the tests use no_bokeh=True
so that it still gets tested on Travis.
The errors are ocurring because you've changed the signature of |
@@ -24,7 +24,15 @@ def test_sqrt(): | |||
def test_mnist(): | |||
skip_if_not_available(modules=['bokeh']) | |||
with tempfile.NamedTemporaryFile() as f: | |||
mnist_test(f.name, 1) | |||
mnist_test(f.name, 1, True) |
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.
Probably just run this test once with Bokeh, it'll just slow down the test suite to run it twice, and we don't really gain much from it.
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 agree. Changes made, submitted PR
Attempt at adapting example to be usable without Bokeh. Fixes #174
No description provided.