nteract / semiotic

A data visualization framework combining React & D3
https://semioticv1.nteract.io/
Other
2.43k stars 133 forks source link

How to use with nteract? #623

Open frthjf opened 2 years ago

frthjf commented 2 years ago

Hi, I might be missing something obvious but I have trouble getting semiotic to work in nteract. I've tried installing it via npm (https://github.com/nteract/nteract/issues/1696) using the following package.json

{
  "type": "module",
  "dependencies": {
    "semiotic": "^2.0.0-rc.20"
  }
}

But when I run import { NetworkFrame } from "semiotic" in nteract, I get SyntaxError: Cannot use import statement outside a module. What's the recommended way of using semiotic in nteract?