{
  "id": 546453,
  "title": "New cool 3D particle visualisation notebook... But there's a catch",
  "url": "/competitions/czii-cryo-et-object-identification/discussion/546453",
  "author_name": "",
  "post_date": "2024-11-15T21:56:49.765214Z",
  "votes": 21,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hi, everyone,</p>\n<p>I recently converted my 3D particle visualization notebook to Kaggle. The notebook utilizes 3D spheres, similar to those used in a Kaggle benchmark solution, and enables you to observe how images and masks change slice by slice in three projections: xy, xz, and yz.</p>\n<p>However, there’s a catch: I built it using ipywidgets, which work perfectly on my local machine but don’t seem to function in Kaggle notebooks. Any widget in the notebook just displays “Loading widget” without further action. Until this issue is resolved, the notebook can only be used locally.</p>\n<p>To run it locally, you’ll need to set:<br>\ndata_path='/kaggle/input/czii-cryo-et-object-identification/' (to you actual data path)</p>\n<p>You can get notebook here:<br>\n<a href=\"https://www.kaggle.com/code/sakvaua/cryoet-3d-particle-size-visualization-by-slice\" target=\"_blank\">https://www.kaggle.com/code/sakvaua/cryoet-3d-particle-size-visualization-by-slice</a></p>\n<p>Examples of what can be seen are below<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fafd3bb4b6ee990a50937157857987e77%2Fimg1.png?generation=1731707394981523&amp;alt=media\" alt=\"\">:<br>\nDIfferent experiment run and projection<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fe2157656866972e308aabe018b24c688%2Fimg2.png?generation=1731707425312894&amp;alt=media\" alt=\"\"></p>\n<p>If you know how to make ipywidgets work please let me know. Also if you like the notebook or what can be improved.<br>\nThanks!</p>",
  "messages": [
    {
      "id": "3046800",
      "postDate": "11/15/2024 21:56:49",
      "content": "<p>Hi, everyone,</p>\n<p>I recently converted my 3D particle visualization notebook to Kaggle. The notebook utilizes 3D spheres, similar to those used in a Kaggle benchmark solution, and enables you to observe how images and masks change slice by slice in three projections: xy, xz, and yz.</p>\n<p>However, there’s a catch: I built it using ipywidgets, which work perfectly on my local machine but don’t seem to function in Kaggle notebooks. Any widget in the notebook just displays “Loading widget” without further action. Until this issue is resolved, the notebook can only be used locally.</p>\n<p>To run it locally, you’ll need to set:<br>\ndata_path='/kaggle/input/czii-cryo-et-object-identification/' (to you actual data path)</p>\n<p>You can get notebook here:<br>\n<a href=\"https://www.kaggle.com/code/sakvaua/cryoet-3d-particle-size-visualization-by-slice\" target=\"_blank\">https://www.kaggle.com/code/sakvaua/cryoet-3d-particle-size-visualization-by-slice</a></p>\n<p>Examples of what can be seen are below<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fafd3bb4b6ee990a50937157857987e77%2Fimg1.png?generation=1731707394981523&amp;alt=media\" alt=\"\">:<br>\nDIfferent experiment run and projection<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fe2157656866972e308aabe018b24c688%2Fimg2.png?generation=1731707425312894&amp;alt=media\" alt=\"\"></p>\n<p>If you know how to make ipywidgets work please let me know. Also if you like the notebook or what can be improved.<br>\nThanks!</p>",
      "rawMarkdown": "Hi, everyone,\n\nI recently converted my 3D particle visualization notebook to Kaggle. The notebook utilizes 3D spheres, similar to those used in a Kaggle benchmark solution, and enables you to observe how images and masks change slice by slice in three projections: xy, xz, and yz.\n\nHowever, there’s a catch: I built it using ipywidgets, which work perfectly on my local machine but don’t seem to function in Kaggle notebooks. Any widget in the notebook just displays “Loading widget” without further action. Until this issue is resolved, the notebook can only be used locally.\n\nTo run it locally, you’ll need to set:\ndata_path='/kaggle/input/czii-cryo-et-object-identification/' (to you actual data path)\n\nYou can get notebook here:\nhttps://www.kaggle.com/code/sakvaua/cryoet-3d-particle-size-visualization-by-slice\n\nExamples of what can be seen are below![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fafd3bb4b6ee990a50937157857987e77%2Fimg1.png?generation=1731707394981523&alt=media):\nDIfferent experiment run and projection\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fe2157656866972e308aabe018b24c688%2Fimg2.png?generation=1731707425312894&alt=media)\n\nIf you know how to make ipywidgets work please let me know. Also if you like the notebook or what can be improved.\nThanks!",
      "votes": null
    },
    {
      "id": "3052862",
      "postDate": "11/22/2024 22:46:00",
      "content": "<p>hey man, I'm struggling with ipywidgets trying to create an entry for another competition. any chance you have figured this out?</p>",
      "rawMarkdown": "hey man, I'm struggling with ipywidgets trying to create an entry for another competition. any chance you have figured this out?",
      "votes": null
    },
    {
      "id": "3053109",
      "postDate": "11/23/2024 06:46:10",
      "content": "<p>Hi, Mateusz<br>\nUnfortunately not. I tried everything I can come up with but no luck. If you manage to find the culprit, please let me know!</p>",
      "rawMarkdown": "Hi, Mateusz\nUnfortunately not. I tried everything I can come up with but no luck. If you manage to find the culprit, please let me know!",
      "votes": null
    },
    {
      "id": "3053175",
      "postDate": "11/23/2024 07:58:06",
      "content": "<p>Hi Dennis, I created a post on my competition's discussion board and Paul from Kaggle staff pointed me to this thread: <a href=\"https://www.kaggle.com/discussions/product-announcements/538406\" target=\"_blank\">https://www.kaggle.com/discussions/product-announcements/538406</a></p>\n<p>For now I've tested the solution included there on single widgets and it's working. I don't know how much work it'll take to adapt a more complex GUI (I have like 50+ widgets in mine), but at least there's a light at the end of the tunnel.</p>\n<p>Good luck! Cool notebook by the way, I actually used to work a lot with CryoEM data back in the day :) Fingers crossed for your submission.</p>\n<p>EDIT: Sorry to inform that apparently the \"workaround\" does display the widgets but disables any interactivity, which defeats the purpose completely.</p>",
      "rawMarkdown": "Hi Dennis, I created a post on my competition's discussion board and Paul from Kaggle staff pointed me to this thread: https://www.kaggle.com/discussions/product-announcements/538406\n\nFor now I've tested the solution included there on single widgets and it's working. I don't know how much work it'll take to adapt a more complex GUI (I have like 50+ widgets in mine), but at least there's a light at the end of the tunnel.\n\nGood luck! Cool notebook by the way, I actually used to work a lot with CryoEM data back in the day :) Fingers crossed for your submission.\n\nEDIT: Sorry to inform that apparently the \"workaround\" does display the widgets but disables any interactivity, which defeats the purpose completely.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3052862,
      "author_name": "mateuszdobrychlop",
      "author_url": "",
      "post_date": "11/22/2024 22:46:00",
      "content": "<p>hey man, I'm struggling with ipywidgets trying to create an entry for another competition. any chance you have figured this out?</p>",
      "votes": null,
      "replies": [
        {
          "id": 3053109,
          "author_name": "sakvaua",
          "author_url": "",
          "post_date": "11/23/2024 06:46:10",
          "content": "<p>Hi, Mateusz<br>\nUnfortunately not. I tried everything I can come up with but no luck. If you manage to find the culprit, please let me know!</p>",
          "votes": null,
          "replies": [
            {
              "id": 3053175,
              "author_name": "mateuszdobrychlop",
              "author_url": "",
              "post_date": "11/23/2024 07:58:06",
              "content": "<p>Hi Dennis, I created a post on my competition's discussion board and Paul from Kaggle staff pointed me to this thread: <a href=\"https://www.kaggle.com/discussions/product-announcements/538406\" target=\"_blank\">https://www.kaggle.com/discussions/product-announcements/538406</a></p>\n<p>For now I've tested the solution included there on single widgets and it's working. I don't know how much work it'll take to adapt a more complex GUI (I have like 50+ widgets in mine), but at least there's a light at the end of the tunnel.</p>\n<p>Good luck! Cool notebook by the way, I actually used to work a lot with CryoEM data back in the day :) Fingers crossed for your submission.</p>\n<p>EDIT: Sorry to inform that apparently the \"workaround\" does display the widgets but disables any interactivity, which defeats the purpose completely.</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3046800": "Hi, everyone,\n\nI recently converted my 3D particle visualization notebook to Kaggle. The notebook utilizes 3D spheres, similar to those used in a Kaggle benchmark solution, and enables you to observe how images and masks change slice by slice in three projections: xy, xz, and yz.\n\nHowever, there’s a catch: I built it using ipywidgets, which work perfectly on my local machine but don’t seem to function in Kaggle notebooks. Any widget in the notebook just displays “Loading widget” without further action. Until this issue is resolved, the notebook can only be used locally.\n\nTo run it locally, you’ll need to set:\ndata_path='/kaggle/input/czii-cryo-et-object-identification/' (to you actual data path)\n\nYou can get notebook here:\nhttps://www.kaggle.com/code/sakvaua/cryoet-3d-particle-size-visualization-by-slice\n\nExamples of what can be seen are below![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fafd3bb4b6ee990a50937157857987e77%2Fimg1.png?generation=1731707394981523&alt=media):\nDIfferent experiment run and projection\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F349155%2Fe2157656866972e308aabe018b24c688%2Fimg2.png?generation=1731707425312894&alt=media)\n\nIf you know how to make ipywidgets work please let me know. Also if you like the notebook or what can be improved.\nThanks!",
    "3052862": "hey man, I'm struggling with ipywidgets trying to create an entry for another competition. any chance you have figured this out?",
    "3053109": "Hi, Mateusz\nUnfortunately not. I tried everything I can come up with but no luck. If you manage to find the culprit, please let me know!",
    "3053175": "Hi Dennis, I created a post on my competition's discussion board and Paul from Kaggle staff pointed me to this thread: https://www.kaggle.com/discussions/product-announcements/538406\n\nFor now I've tested the solution included there on single widgets and it's working. I don't know how much work it'll take to adapt a more complex GUI (I have like 50+ widgets in mine), but at least there's a light at the end of the tunnel.\n\nGood luck! Cool notebook by the way, I actually used to work a lot with CryoEM data back in the day :) Fingers crossed for your submission.\n\nEDIT: Sorry to inform that apparently the \"workaround\" does display the widgets but disables any interactivity, which defeats the purpose completely."
  },
  "source": "meta"
}