{
  "id": 383200,
  "title": "3D scatter plots not displaying - ideas ?",
  "url": "/competitions/icecube-neutrinos-in-deep-ice/discussion/383200",
  "author_name": "",
  "post_date": "2023-02-02T15:55:04.202082200Z",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I am using the px.scatter_3d function to plot the sensors, from the pd.DataFrame sensor_geometry.csv …<br>\nOn some of my notebooks, the cell runs but the output is a blank output. Any ideas of why ? Have you ever faced similar 3d plots not displaying ?</p>",
  "messages": [
    {
      "id": "2126985",
      "postDate": "02/02/2023 15:55:04",
      "content": "<p>I am using the px.scatter_3d function to plot the sensors, from the pd.DataFrame sensor_geometry.csv …<br>\nOn some of my notebooks, the cell runs but the output is a blank output. Any ideas of why ? Have you ever faced similar 3d plots not displaying ?</p>",
      "rawMarkdown": "I am using the px.scatter_3d function to plot the sensors, from the pd.DataFrame sensor_geometry.csv ...\nOn some of my notebooks, the cell runs but the output is a blank output. Any ideas of why ? Have you ever faced similar 3d plots not displaying ?",
      "votes": null
    },
    {
      "id": "2127011",
      "postDate": "02/02/2023 16:13:13",
      "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F9030178%2F00230a37c7d5ce55fbc93c8a4bb30547%2Fscreen_plot.png?generation=1675354390620420&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F9030178%2F00230a37c7d5ce55fbc93c8a4bb30547%2Fscreen_plot.png?generation=1675354390620420&alt=media)",
      "votes": null
    },
    {
      "id": "2127120",
      "postDate": "02/02/2023 17:24:47",
      "content": "<p>I often seem to have problems with interactive ones, so…</p>\n<pre><code>%matplotlib inline\n</code></pre>\n<p>…rather than <code>%matplotlib widget</code> tends to help if I don't actually need the interactivity.</p>",
      "rawMarkdown": "I often seem to have problems with interactive ones, so...\n\n```\n%matplotlib inline\n```\n\n...rather than `%matplotlib widget` tends to help if I don't actually need the interactivity.",
      "votes": null
    },
    {
      "id": "2127133",
      "postDate": "02/02/2023 17:32:48",
      "content": "<p>I can see few complaints recently about plotly figures not showing within kaggle notebooks. Some fixed the issue with mere notebook closing and reopenning.</p>",
      "rawMarkdown": "I can see few complaints recently about plotly figures not showing within kaggle notebooks. Some fixed the issue with mere notebook closing and reopenning.",
      "votes": null
    },
    {
      "id": "2129871",
      "postDate": "02/05/2023 00:50:49",
      "content": "<p>See my notebook on <a href=\"https://www.kaggle.com/code/solverworld/distribution-of-neutrino-arrival-directions\" target=\"_blank\">Neutrino Directions</a>.  These lines of code seemed to work:</p>\n<pre><code>#This seems to help when graphics stop displaying \nfrom plotly.offline import init_notebook_mode, iplot\ninit_notebook_mode(connected=True)\n</code></pre>",
      "rawMarkdown": "See my notebook on [Neutrino Directions](https://www.kaggle.com/code/solverworld/distribution-of-neutrino-arrival-directions).  These lines of code seemed to work:\n```\n#This seems to help when graphics stop displaying \nfrom plotly.offline import init_notebook_mode, iplot\ninit_notebook_mode(connected=True)\n```",
      "votes": null
    },
    {
      "id": "2140588",
      "postDate": "02/11/2023 21:37:04",
      "content": "<p>I had the same experience.<br>\nWould the following code solve the problem? <a href=\"https://www.kaggle.com/louisstefanuto\" target=\"_blank\">@louisstefanuto</a> </p>\n<pre><code>import plotly.offline as pyo\npyo.init_notebook_mode()\n</code></pre>",
      "rawMarkdown": "I had the same experience.\nWould the following code solve the problem? @louisstefanuto \n```\nimport plotly.offline as pyo\npyo.init_notebook_mode()\n```",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2127011,
      "author_name": "louisstefanuto",
      "author_url": "",
      "post_date": "02/02/2023 16:13:13",
      "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F9030178%2F00230a37c7d5ce55fbc93c8a4bb30547%2Fscreen_plot.png?generation=1675354390620420&amp;alt=media\" alt=\"\"></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2127120,
      "author_name": "andrewrrose",
      "author_url": "",
      "post_date": "02/02/2023 17:24:47",
      "content": "<p>I often seem to have problems with interactive ones, so…</p>\n<pre><code>%matplotlib inline\n</code></pre>\n<p>…rather than <code>%matplotlib widget</code> tends to help if I don't actually need the interactivity.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2127133,
      "author_name": "ahmedeltom",
      "author_url": "",
      "post_date": "02/02/2023 17:32:48",
      "content": "<p>I can see few complaints recently about plotly figures not showing within kaggle notebooks. Some fixed the issue with mere notebook closing and reopenning.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2129871,
      "author_name": "solverworld",
      "author_url": "",
      "post_date": "02/05/2023 00:50:49",
      "content": "<p>See my notebook on <a href=\"https://www.kaggle.com/code/solverworld/distribution-of-neutrino-arrival-directions\" target=\"_blank\">Neutrino Directions</a>.  These lines of code seemed to work:</p>\n<pre><code>#This seems to help when graphics stop displaying \nfrom plotly.offline import init_notebook_mode, iplot\ninit_notebook_mode(connected=True)\n</code></pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2140588,
      "author_name": "utm529fg",
      "author_url": "",
      "post_date": "02/11/2023 21:37:04",
      "content": "<p>I had the same experience.<br>\nWould the following code solve the problem? <a href=\"https://www.kaggle.com/louisstefanuto\" target=\"_blank\">@louisstefanuto</a> </p>\n<pre><code>import plotly.offline as pyo\npyo.init_notebook_mode()\n</code></pre>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2126985": "I am using the px.scatter_3d function to plot the sensors, from the pd.DataFrame sensor_geometry.csv ...\nOn some of my notebooks, the cell runs but the output is a blank output. Any ideas of why ? Have you ever faced similar 3d plots not displaying ?",
    "2127011": "![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F9030178%2F00230a37c7d5ce55fbc93c8a4bb30547%2Fscreen_plot.png?generation=1675354390620420&alt=media)",
    "2127120": "I often seem to have problems with interactive ones, so...\n\n```\n%matplotlib inline\n```\n\n...rather than `%matplotlib widget` tends to help if I don't actually need the interactivity.",
    "2127133": "I can see few complaints recently about plotly figures not showing within kaggle notebooks. Some fixed the issue with mere notebook closing and reopenning.",
    "2129871": "See my notebook on [Neutrino Directions](https://www.kaggle.com/code/solverworld/distribution-of-neutrino-arrival-directions).  These lines of code seemed to work:\n```\n#This seems to help when graphics stop displaying \nfrom plotly.offline import init_notebook_mode, iplot\ninit_notebook_mode(connected=True)\n```",
    "2140588": "I had the same experience.\nWould the following code solve the problem? @louisstefanuto \n```\nimport plotly.offline as pyo\npyo.init_notebook_mode()\n```"
  },
  "source": "meta"
}