thank you, I added a cell with this code. But I don´t know how I to set a param in the embed code. This ist my embed code (first cell): Temperatur regional / RND / Observable
@jchrist âcellâ was just an example for a parameter name. You need to replace it with your own, e.g. âortâ, as the names âcellâ and âcellsâ are already reserved for the selection of cells that are shown in an embedded notebook. Sorry that I didnât make this clear.
@jchrist Append it to your embed URL as &ort=Stuttgart. The â?â is used to mark the beginning of the query string, while individual parameters are delimited by â&â.
No, this is just the module URL. How you fetch the query depends on how and where your embed code is integrated. Since custom embeds are a pretty advanced feature I would recommend to stick with iframe embeds instead.
No, not unless you plan to add them to the parent documentâs URL.
Instead youâll have to redefine the values. Modify the embed snippet code as follows:
// Assign the returned module to a variable
const module = new Runtime().module(define, (name) => {
// ... usual observer snippet ...
});
// Overriding the value for a cell called "myParam":
module.redefine("myParam", "new value");
// or, for dynamic values, a function:
module.redefine("myParam", () => "new value");