Skip to content
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

fix viewable show keyword arguments #1106

Merged
merged 4 commits into from
Feb 19, 2020
Merged

Conversation

gmoutso
Copy link
Contributor

@gmoutso gmoutso commented Feb 18, 2020

keyword arguments show and title are now passed to the get_server.

@@ -244,7 +244,7 @@ def servable(self, title=None):
return self

def show(self, port=0, websocket_origin=None, threaded=False,
title=None, verbose=True, **kwargs):
title=None, verbose=True, show=False, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the show argument documented in the show() method docstring, which seems important given how unintuitive show(show=False) is. :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the docstring and changed the default to the previous behaviour.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the docstring from server.py. Should kwarg show be popup or open?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops; responded in different thread, proposing open or launch or browse. Probably should let @philippjfr decide.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No strong preference but I vote for open and I'd probably only rename it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

show(show=True) does look somewhat absurd (but I really want you to show...). I think the votes are in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or even more strange to request show(show=False)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will push open but feel free to revert (open has the disadvantage of being a python command as well).

panel/viewable.py Outdated Show resolved Hide resolved
@philippjfr
Copy link
Member

Looks good thanks, those py2 CI issues will be resolved separately.

@philippjfr philippjfr merged commit 8d69376 into holoviz:master Feb 19, 2020
@gmoutso gmoutso deleted the fixshow branch February 23, 2020 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants