Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jupyter-js-output-area

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jupyter-js-output-area

Library for handling and displaying Jupyter output messages.

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
2
Weekly downloads
 
Created
Source

jupyter-js-output-area

Javascript APIs for Jupyter output areas

Demo

In order to run the demo, build the package as described in the instructions below and run npm run dev. Your browser window will open the demo.

Install

Stable (npm):

npm install jupyter-js-output-area

Dev install

git clone https://github.com/jupyter/jupyter-js-output-area.git
cd jupyter-js-output-area

To build

npm install
npm run build

API

Consumer

To display a Jupyter output area, you need to instantiate an output model and an output view, in that order.

import {OutputModel, OutputView} from 'jupyter-js-output-area';
let model = new OutputModel();
let view = new OutputView(model, document);

You can then display the output by appending it to your document.

document.querySelector('body').appendChild(view.el);

To have the output area display actual outputs, you can either pass it full Jupyter msgs

model.consumeMessage(msg);

or set the state directly

model.state = state;

You can save the state by accessing the same property

state = model.state;

Dev

TODO: Describe how to write custom models and views.

Keywords

FAQs

Package last updated on 12 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc