facets icon indicating copy to clipboard operation
facets copied to clipboard

# Display the facets overview visualization for this data

Open itsergiu opened this issue 7 years ago • 14 comments

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?

itsergiu avatar Nov 15 '17 10:11 itsergiu

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 avatar Nov 20 '17 14:11 jameswex

@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 avatar Mar 27 '18 21:03 ajmaradiaga

@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.

jameswex avatar Mar 28 '18 14:03 jameswex

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 avatar Nov 09 '18 23:11 tingmar

@tingmar which exact notebook do you see this happen with?

jameswex avatar Nov 12 '18 16:11 jameswex

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.

tingmar avatar Nov 12 '18 17:11 tingmar

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 avatar Nov 21 '18 17:11 tingmar

@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))

jameswex avatar Nov 26 '18 17:11 jameswex

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

mpushkarna avatar Sep 06 '19 19:09 mpushkarna

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.

tingmar avatar Sep 06 '19 20:09 tingmar

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.

mpushkarna avatar Sep 13 '19 17:09 mpushkarna

[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.

tingmar avatar Sep 13 '19 18:09 tingmar

@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!

jcayer5 avatar Oct 20 '20 21:10 jcayer5

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.

jameswex avatar Oct 20 '20 22:10 jameswex