Issue running @mbostock/slide example

I tried importing @mbostock slide as shown in the examples here but I get a weird SyntaxError: Unexpected token:

What am I doing wrong?

Thanks much!

Try putting each of those lines in a separate cell.

1 Like

Thanks for the suggestion @bgchen. Doing that just created 3 errors now:

:man_shrugging: This is puzzling.

I’m not able to reproduce these errors. Could you link to your notebook?

Here’s a clean notebook I just put together for comparison; I’m not getting any errors in it:

1 Like

Weird, I’m not sure what happened in the other notebook @bgchen but I started clean and got it working.

See the ReferenceError: document not found? You need @mbostock/slide singular, not plural.

1 Like

Ugh. Rookie mistake on my part. This was my first time playing with Observable. Thanks for the help @mbostock.

1 Like


Here’s a pimped version of Mike’s slide with transitions and keyboard controls : @enkimute/pitch

end plug

1 Like

Nice work, @enkimute!

1 Like


Seems to be partially broken in Firefox and completely broken in Safari. Works in Chrome though.

1 Like