npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@nteract/jupyter-widgets

2.0.0 • Public • Published

transform-widgets

Rich media type which will render Jupyter-Widgets in isolated iframes.

MIMETYPE = "application/vnd.jupyter.widget-view+json"

Usage

Within nteract

import { WidgetDisplay } from "@nteract/transform-widgets";
 
...
 
<WidgetDisplay data={{model_id: 'widget-model-guid'}}/>

Outside of nteract

import { PureWidgetDisplay } from "@nteract/transform-widgets";
 
...
 
<PureWidgetDisplay 
    data={{model_id: 'widget-model-guid'} 
    currentKernel={remoteKernelPropsInstance}}/>

See RemoteKernelProps of nteract/packages/core/src/state/entities/kernels.js for a description of remoteKernelPropsInstance.

install

npm i @nteract/jupyter-widgets

Downloadsweekly downloads

102

version

2.0.0

license

BSD-3-Clause

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability