{
  "id": 96667,
  "title": "Altair raises errors",
  "url": "/competitions/champs-scalar-coupling/discussion/96667",
  "author_name": "",
  "post_date": "2019-06-21T21:10:13.542998100Z",
  "votes": 5,
  "comment_count": 8,
  "views": 0,
  "content": "<p>^ this.</p>\n\n<p>The thing started to happen this evening (~5 hours ago).\nAll of my kaggle kernels with Altair does not work.\nCould somebody clarify how to fix this?\nError is raised in line :\n<code>alt.renderers.enable('notebook')</code>\n<img src=\"https://pp.userapi.com/c849028/v849028061/1c1f3f/GF6ob7nFN0I.jpg\" alt=\"\"></p>",
  "messages": [
    {
      "id": "558111",
      "postDate": "06/21/2019 21:10:13",
      "content": "<p>^ this.</p>\n\n<p>The thing started to happen this evening (~5 hours ago).\nAll of my kaggle kernels with Altair does not work.\nCould somebody clarify how to fix this?\nError is raised in line :\n<code>alt.renderers.enable('notebook')</code>\n<img src=\"https://pp.userapi.com/c849028/v849028061/1c1f3f/GF6ob7nFN0I.jpg\" alt=\"\"></p>",
      "rawMarkdown": "^ this.\n\nThe thing started to happen this evening (~5 hours ago).\nAll of my kaggle kernels with Altair does not work.\nCould somebody clarify how to fix this?\nError is raised in line :\n`alt.renderers.enable('notebook')`\n![](https://pp.userapi.com/c849028/v849028061/1c1f3f/GF6ob7nFN0I.jpg)",
      "votes": null
    },
    {
      "id": "558236",
      "postDate": "06/22/2019 02:55:11",
      "content": "<p>You need to do a couple of things:\n1. Before importing altair you need to install some libraries: <code>!pip install -U vega_datasets notebook vega</code>\n2. Change\n<code>from altair.vega import v3\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v3.SCHEMA_VERSION</code>\nto \n<code>from altair.vega import v5\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v5.SCHEMA_VERSION</code></p>",
      "rawMarkdown": "You need to do a couple of things:\n1. Before importing altair you need to install some libraries: `!pip install -U vega_datasets notebook vega`\n2. Change\n`from altair.vega import v3\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v3.SCHEMA_VERSION`\nto \n`from altair.vega import v5\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v5.SCHEMA_VERSION`",
      "votes": null
    },
    {
      "id": "558389",
      "postDate": "06/22/2019 08:49:58",
      "content": "<p>I got the same error.\nAfter modifying those things, it worked.\nThank you so much!</p>",
      "rawMarkdown": "I got the same error.\nAfter modifying those things, it worked.\nThank you so much!",
      "votes": null
    },
    {
      "id": "558390",
      "postDate": "06/22/2019 08:51:39",
      "content": "<p>Thanks for your help Andrew, but still no luck :c</p>\n\n<ol>\n<li>Can't install:\n<code>ERROR: Could not find a version that satisfies the requirement vega_datasets (from versions: none)\nERROR: No matching distribution found for vega_datasets</code></li>\n<li>I didn't use v5, it was already v3.</li>\n</ol>",
      "rawMarkdown": "Thanks for your help Andrew, but still no luck :c\n\n1.  Can't install:\n`ERROR: Could not find a version that satisfies the requirement vega_datasets (from versions: none)\nERROR: No matching distribution found for vega_datasets`\n2. I didn't use v5, it was already v3.",
      "votes": null
    },
    {
      "id": "558561",
      "postDate": "06/22/2019 15:08:56",
      "content": "<p><a href=\"/stanislavblinov\">@stanislavblinov</a>\n1. I turned ON Internet from settings and install packages.\n2. My notebook was also already v3, I then changed it to v5.\nIn my case, it finally worked.</p>",
      "rawMarkdown": "stanislavblinov\n1. I turned ON Internet from settings and install packages.\n2. My notebook was also already v3, I then changed it to v5.\nIn my case, it finally worked.",
      "votes": null
    },
    {
      "id": "558658",
      "postDate": "06/22/2019 17:51:30",
      "content": "<p>Thanks <a href=\"/oshidori\">@oshidori</a> \n№2 did the trick</p>",
      "rawMarkdown": "Thanks @oshidori \n№2 did the trick",
      "votes": null
    },
    {
      "id": "558670",
      "postDate": "06/22/2019 18:14:42",
      "content": "<p>Oh, yes, I meant that we need to replace <code>3</code> with <code>5</code>, not the other way. Fixed it now.</p>",
      "rawMarkdown": "Oh, yes, I meant that we need to replace `3` with `5`, not the other way. Fixed it now.",
      "votes": null
    },
    {
      "id": "558682",
      "postDate": "06/22/2019 18:31:47",
      "content": "<p>Saturday vibes huh :)</p>",
      "rawMarkdown": "Saturday vibes huh :)",
      "votes": null
    },
    {
      "id": "890411",
      "postDate": "06/17/2020 13:52:54",
      "content": "<p>Thank you ! The another problem is: MaxRowsError for pandas.df with &gt; 5000 rows.</p>",
      "rawMarkdown": "Thank you ! The another problem is: MaxRowsError for pandas.df with &gt; 5000 rows.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 558236,
      "author_name": "artgor",
      "author_url": "",
      "post_date": "06/22/2019 02:55:11",
      "content": "<p>You need to do a couple of things:\n1. Before importing altair you need to install some libraries: <code>!pip install -U vega_datasets notebook vega</code>\n2. Change\n<code>from altair.vega import v3\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v3.SCHEMA_VERSION</code>\nto \n<code>from altair.vega import v5\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v5.SCHEMA_VERSION</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 558389,
          "author_name": "oshidori",
          "author_url": "",
          "post_date": "06/22/2019 08:49:58",
          "content": "<p>I got the same error.\nAfter modifying those things, it worked.\nThank you so much!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 558390,
          "author_name": "stanislavblinov",
          "author_url": "",
          "post_date": "06/22/2019 08:51:39",
          "content": "<p>Thanks for your help Andrew, but still no luck :c</p>\n\n<ol>\n<li>Can't install:\n<code>ERROR: Could not find a version that satisfies the requirement vega_datasets (from versions: none)\nERROR: No matching distribution found for vega_datasets</code></li>\n<li>I didn't use v5, it was already v3.</li>\n</ol>",
          "votes": null,
          "replies": []
        },
        {
          "id": 558561,
          "author_name": "oshidori",
          "author_url": "",
          "post_date": "06/22/2019 15:08:56",
          "content": "<p><a href=\"/stanislavblinov\">@stanislavblinov</a>\n1. I turned ON Internet from settings and install packages.\n2. My notebook was also already v3, I then changed it to v5.\nIn my case, it finally worked.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 558658,
          "author_name": "stanislavblinov",
          "author_url": "",
          "post_date": "06/22/2019 17:51:30",
          "content": "<p>Thanks <a href=\"/oshidori\">@oshidori</a> \n№2 did the trick</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 558670,
          "author_name": "artgor",
          "author_url": "",
          "post_date": "06/22/2019 18:14:42",
          "content": "<p>Oh, yes, I meant that we need to replace <code>3</code> with <code>5</code>, not the other way. Fixed it now.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 558682,
          "author_name": "stanislavblinov",
          "author_url": "",
          "post_date": "06/22/2019 18:31:47",
          "content": "<p>Saturday vibes huh :)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 890411,
          "author_name": "caesarlupum",
          "author_url": "",
          "post_date": "06/17/2020 13:52:54",
          "content": "<p>Thank you ! The another problem is: MaxRowsError for pandas.df with &gt; 5000 rows.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "558111": "^ this.\n\nThe thing started to happen this evening (~5 hours ago).\nAll of my kaggle kernels with Altair does not work.\nCould somebody clarify how to fix this?\nError is raised in line :\n`alt.renderers.enable('notebook')`\n![](https://pp.userapi.com/c849028/v849028061/1c1f3f/GF6ob7nFN0I.jpg)",
    "558236": "You need to do a couple of things:\n1. Before importing altair you need to install some libraries: `!pip install -U vega_datasets notebook vega`\n2. Change\n`from altair.vega import v3\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v3.SCHEMA_VERSION`\nto \n`from altair.vega import v5\n...\nvega_url = 'https://cdn.jsdelivr.net/npm/vega@' + v5.SCHEMA_VERSION`",
    "558389": "I got the same error.\nAfter modifying those things, it worked.\nThank you so much!",
    "558390": "Thanks for your help Andrew, but still no luck :c\n\n1.  Can't install:\n`ERROR: Could not find a version that satisfies the requirement vega_datasets (from versions: none)\nERROR: No matching distribution found for vega_datasets`\n2. I didn't use v5, it was already v3.",
    "558561": "stanislavblinov\n1. I turned ON Internet from settings and install packages.\n2. My notebook was also already v3, I then changed it to v5.\nIn my case, it finally worked.",
    "558658": "Thanks @oshidori \n№2 did the trick",
    "558670": "Oh, yes, I meant that we need to replace `3` with `5`, not the other way. Fixed it now.",
    "558682": "Saturday vibes huh :)",
    "890411": "Thank you ! The another problem is: MaxRowsError for pandas.df with &gt; 5000 rows."
  },
  "source": "meta"
}