# Is it possible to do a namespace import?

**URL:** <https://talk.observablehq.com/t/is-it-possible-to-do-a-namespace-import/8262>\
**Category:** Help\
**Created:** [September 8, 2023, 6:02pm UTC](https://talk.observablehq.com/t/is-it-possible-to-do-a-namespace-import/8262 "2023-09-08T18:02:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [September 8, 2023, 9:22pm UTC](https://talk.observablehq.com/t/is-it-possible-to-do-a-namespace-import/8262/2 "2023-09-08T21:22:56Z")

</div>

Observable only supports dynamic imports, as the static import syntax is reserved for notebook modules (that is, cells imported from other notebooks).

Additionally you need to use a bundling service like skypack, jsdelivr or esm.sh. I recommend esm.sh as it lets you specify the dependencies or even create your own bundle on the fly, something you may need for the [other question](https://talk.observablehq.com/t/importing-from-a-module-that-requires-a-catch-and-window-attachment/8263) that you posted. Check out [their docs](https://esm.sh/#docs) for more details.

You can import BabylonJS with

```auto
BABYLON = (await import("https://esm.sh/babylonjs@6")).default

```

---

_[View the full topic](https://talk.observablehq.com/t/is-it-possible-to-do-a-namespace-import/8262)._
