facets
facets copied to clipboard
# Display the facets overview visualization for this data
Run code in Jupyter: !jupyter nbextension install facets/facets-dist/
Output: Up to date: C:\ProgramData\jupyter\nbextensions\facets-dist\facets-jupyter.html To initialize this nbextension in the browser every time the notebook (or other app) loads: jupyter nbextension enable <-the entry point->
Run cell in Jupyter: Display the facets overview visualization for this data
Output: Nothing
How to get an output?
Need more information to debug this issue.
Are there any errors in the chrome developers console?
Is this failing with the demo notebook includied in the facets-overview directory, with the demo UCI census data? Or does that work and this is a separate dataset on which it is failing?
Does the Facets Dive notebook work for you?
@jameswex I get the same issue, no erros in the Chrome developer console. I attemped to run the dataset specified in the demo and also a separate dataset. In both cases, no output when running the last cell in the demo overview notebook.
I only managed to make it work when the starting folder of my jupyter notebook is the facets directory.
@ajmaradiaga Are you using windows like @itsergiu ? Also, did you install the facets jupyter extension using "jupyter nbextension install facets-dist/" and did that succeed without error? Interesting that it only works for you when launching the notebook directly from the facets directory.
I an reproduce the two visualizations separately with no problem. But when running the two visualizations in the same Jupyter notebook, the overview, which is the second one, will not display any output.
I am running the demo on my local Jupyter notebook on my Mac.
@tingmar which exact notebook do you see this happen with?
I was trying to re-produce the code in the colab ipynb located here: https://github.com/PAIR-code/facets/blob/master/colab_facets.ipynb
When the two visualizations were run in the same notebook, the second visualization always gave a blank output.
Thank you for checking.
On Mon, Nov 12, 2018 at 8:14 AM James Wexler [email protected] wrote:
@tingmar https://github.com/tingmar which exact notebook do you see this happen with?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PAIR-code/facets/issues/85#issuecomment-437938654, or mute the thread https://github.com/notifications/unsubscribe-auth/AiVxpwg2Krz7fUPFLS-5qVg5BLEZvbv5ks5uuZ45gaJpZM4QerLv .
-- Clinical Data Science
--
This email message, including attachments, may contain private, proprietary, or privileged information and is the confidential information and/or property of GRAIL, Inc., and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
I just realized that I did not provide the Jupyter Notebook version that I was running. Hope this information below is helpful.
packages in environment at /anaconda3:
Name Version Build Channel
ipython 6.4.0 py36_0
ipython_genutils 0.2.0 py36h241746c_0
The notebook is run on my MacBook.
Thank you again for any advice.
@tingmar that notebook is meant to show use of Facets visualizations inside of google colab, as opposed to jupyter notebooks, as per the README.md in that directory. Although I do see the issue you have where having Facets Dive and Facets Overview separate cells in a single notebook is causing the second one not to appear. Although I'm not sure of the root cause, you should be able to show them in a single cell without problem with code something like this:
# Display the Dive visualization for this data
from IPython.core.display import display, HTML
# Create Facets template
HTML_TEMPLATE = """<link rel="import" href="/nbextensions/facets-dist/facets-jupyter.html">
<facets-dive sprite-image-width="{sprite_size}" sprite-image-height="{sprite_size}" id="elem" height="600"></facets-dive>
<facets-overview id="fo"></facets-overview>
<script>
document.querySelector("#elem").data = {jsonstr};
document.querySelector("#fo").protoInput = "{protostr}";
</script>"""
# Load the json dataset and the sprite_size into the template
html = HTML_TEMPLATE.format(jsonstr=jsonstr, sprite_size=sprite_size, protostr=protostr)
# Display the template
display(HTML(html))
Hi @ajmaradiaga, @tingmar and @itsergiu
I'm Mahima Pushkarna, the design lead on Facets. As we continue to improve Facets, I would like to know more about if and how you used Facets Overview. Would you be open to sharing your individual experiences over a short video chat?
Thanks! Mahima
Hi Mahima,
Yes. I am happy to share my experience with Facets.
Ting
On Fri, Sep 6, 2019 at 12:06 PM Mahima Pushkarna [email protected] wrote:
Hi @ajmaradiaga https://github.com/ajmaradiaga, @tingmar https://github.com/tingmar and @itsergiu https://github.com/itsergiu
I'm Mahima Pushkarna, the design lead on Facets. As we continue to improve Facets, I would like to know more about if and how you used Facets Overview. Would you be open to sharing your individual experiences over a short video chat?
Thanks! Mahima
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PAIR-code/facets/issues/85?email_source=notifications&email_token=AISXDJ57Z3OCAJRTRI4KXOTQIKSZTA5CNFSM4ED2WLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DY2HY#issuecomment-528977183, or mute the thread https://github.com/notifications/unsubscribe-auth/AISXDJZINHLJIMZGITNJEQ3QIKSZTANCNFSM4ED2WLXQ .
-- Clinical Data Science
--
This email message, including attachments, may contain private, proprietary, or privileged information and is the confidential information and/or property of GRAIL, Inc., and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Hi Ting That's great to hear. Is there an email address that I can reach you at?
Mahima
Hi Mahima, Yes. I am happy to share my experience with Facets. Ting … On Fri, Sep 6, 2019 at 12:06 PM Mahima Pushkarna @.***> wrote: Hi @ajmaradiaga https://github.com/ajmaradiaga, @tingmar https://github.com/tingmar and @itsergiu https://github.com/itsergiu I'm Mahima Pushkarna, the design lead on Facets. As we continue to improve Facets, I would like to know more about if and how you used Facets Overview. Would you be open to sharing your individual experiences over a short video chat? Thanks! Mahima — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#85?email_source=notifications&email_token=AISXDJ57Z3OCAJRTRI4KXOTQIKSZTA5CNFSM4ED2WLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DY2HY#issuecomment-528977183>, or mute the thread https://github.com/notifications/unsubscribe-auth/AISXDJZINHLJIMZGITNJEQ3QIKSZTANCNFSM4ED2WLXQ . -- Clinical Data Science -- This email message, including attachments, may contain private, proprietary, or privileged information and is the confidential information and/or property of GRAIL, Inc., and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
[email protected] would be good.
On Fri, Sep 13, 2019 at 10:30 AM Mahima Pushkarna [email protected] wrote:
Hi Ting That's great to hear. Is there an email address that I can reach you at?
Mahima
Hi Mahima, Yes. I am happy to share my experience with Facets. Ting … <#m_-5411649785921305031_> On Fri, Sep 6, 2019 at 12:06 PM Mahima Pushkarna @.***> wrote: Hi @ajmaradiaga https://github.com/ajmaradiaga https://github.com/ajmaradiaga, @tingmar https://github.com/tingmar https://github.com/tingmar and @itsergiu https://github.com/itsergiu https://github.com/itsergiu I'm Mahima Pushkarna, the design lead on Facets. As we continue to improve Facets, I would like to know more about if and how you used Facets Overview. Would you be open to sharing your individual experiences over a short video chat? Thanks! Mahima — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#85 https://github.com/PAIR-code/facets/issues/85?email_source=notifications&email_token=AISXDJ57Z3OCAJRTRI4KXOTQIKSZTA5CNFSM4ED2WLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DY2HY#issuecomment-528977183>, or mute the thread https://github.com/notifications/unsubscribe-auth/AISXDJZINHLJIMZGITNJEQ3QIKSZTANCNFSM4ED2WLXQ . -- Clinical Data Science -- This email message, including attachments, may contain private, proprietary, or privileged information and is the confidential information and/or property of GRAIL, Inc., and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PAIR-code/facets/issues/85?email_source=notifications&email_token=AISXDJ7GMH3J55NMHOFENP3QJPE4HA5CNFSM4ED2WLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6VV5NQ#issuecomment-531324598, or mute the thread https://github.com/notifications/unsubscribe-auth/AISXDJ3KGL53KMAYNYZHN3TQJPE4HANCNFSM4ED2WLXQ .
-- Clinical Data Science
--
This email message, including attachments, may contain private, proprietary, or privileged information and is the confidential information and/or property of GRAIL, Inc., and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
@jameswex your comment saved my day. I had Facets Overview and Facets Dive both working yesterday in separate Jupyter Notebooks, but today nothing I tried would get Facets Overview to display. Combining them into one cell not only solved my problem, it also tidied-up my work. Thanks!
Glad to hear it! Another option is to wrap the HTML template with an iframe as the outer element. With each output cell having its Facets in an iframe, they won't screw each other up.