# TypeError when embedding notebook

**URL:** <https://talk.observablehq.com/t/typeerror-when-embedding-notebook/3251>\
**Category:** Uncategorized\
**Created:** [May 8, 2020, 8:26pm UTC](https://talk.observablehq.com/t/typeerror-when-embedding-notebook/3251 "2020-05-08T20:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy9959](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jeremy9959/32/3059_2.png) [@jeremy9959](https://talk.observablehq.com/u/jeremy9959)\
**Post date:** [May 8, 2020, 8:26pm UTC](https://talk.observablehq.com/t/typeerror-when-embedding-notebook/3251/1 "2020-05-08T20:26:52Z")

</div>

I am following the directions [here](https://observablehq.com/@observablehq/downloading-and-embedding-notebooks) under the section “Rendering cells” using [this published notebook](https://observablehq.com/@jeremy9959/covid-19-report-for-ct-counties). My html file looks like this:

```auto
<!DOCTYPE html>                                                                                                         
<body>
  <script type="module">

    import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
    import notebook from "https://api.observablehq.com/@jeremy9959/covid-19-report-for-ct-counties.js";
    console.log(notebook) ;
    new Runtime().module(notebook, Inspector.into(document.body)) ;
  </script>
</body>

```

and I can verify in the console that the `notebook` object is obtained. However, nothing is rendered and the console reports:

```auto
TypeError: e is not a function.

```

I’m on ubuntu 18.04LTS using the `python -m http.server` to look at this file (python version 3.7+).

What am I missing?

---

<div class="post-metadata">

**Author:** ![radames](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/radames/32/1699_2.png) [@radames](https://talk.observablehq.com/u/radames)\
**Post date:** [May 8, 2020, 8:54pm UTC](https://talk.observablehq.com/t/typeerror-when-embedding-notebook/3251/2 "2020-05-08T20:54:43Z")

</div>

I think you’re missing the API version parameter `?v=3` on the notebook URL

```auto
    import notebook from "https://api.observablehq.com/@jeremy9959/covid-19-report-for-ct-counties.js";

```

The embed below works fine

```auto
<!DOCTYPE html>                                                                                                         
<body>
  <script type="module">

    import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
    import notebook from "https://api.observablehq.com/@jeremy9959/covid-19-report-for-ct-counties.js?v=3";
    console.log(notebook) ;
    new Runtime().module(notebook, Inspector.into(document.body)) ;
  </script>
</body>

```

---

<div class="post-metadata">

**Author:** ![jeremy9959](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jeremy9959/32/3059_2.png) [@jeremy9959](https://talk.observablehq.com/u/jeremy9959)\
**Post date:** [May 9, 2020, 12:56pm UTC](https://talk.observablehq.com/t/typeerror-when-embedding-notebook/3251/3 "2020-05-09T12:56:40Z")

</div>

Thanks, I didn’t realize that the `?v=3` was an API parameter, I thought it referred to a version of the notebook itself.
