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

add to_json to umap widget #29

Merged
merged 1 commit into from
Nov 18, 2022
Merged

add to_json to umap widget #29

merged 1 commit into from
Nov 18, 2022

Conversation

davidgmonical
Copy link
Contributor

No description provided.

def show(self):
display(HTML(self.template()))
display(HTML(self.template(self.to_json())))
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it to_json an attirubute? Why are we calling to_json()?

class UMAPWidget:
def template(self):
json_data = self.to_json()
def __init__(self, to_json=demo_json):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def __init__(self, to_json=demo_json):
def __init__(self, json):

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, we will change the constructor parameter

@mikeldking mikeldking merged commit f7318e2 into main Nov 18, 2022
@mikeldking mikeldking deleted the pipe-to-json-to-umap-widget branch November 18, 2022 19:47
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.

3 participants