Skip to content

Import Observable notebooks into Observable Desktop #9

Answered by mbostock
gganapat asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the observable: protocol to import a Observable notebook.

import {rangeSlider} from "observable:@mootari/range-slider";

Alternatively you can use import attributes with {type: "observable"}:

import {rangeSlider} from "https://api.observablehq.com/@mootari/range-slider.js?v=4" with {type: "observable"};

The latter is useful if you want to download (and potentially self-host) a notebook rather than loading it live from Observable. The observable: import protocol is simply shorthand for this longer form.

Duplicate of #10.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mbostock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants