How to use @nteract/data-explorer - 1 common examples

To help you get started, we’ve selected a few @nteract/data-explorer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BenRussert / data-explorer / lib / common.js View on Github external
/* @flow */
import DataExplorer from "@nteract/data-explorer";

export type MIMETYPE = "application/vnd.dataresource+json";
export const DATA_EXPLORER_MEDIA_TYPE: MIMETYPE =
  "application/vnd.dataresource+json";

(DataExplorer.MIMETYPE: MIMETYPE);

export const DATA_EXPLORER_URI = "atom://hydrogen-data-explorer/dock-view";

// Just the basics, there is more to fully type this
// https://frictionlessdata.io/specs/tabular-data-resource/
export type DataResource = {
  data: Array>,
  schema: { fields: Array<{ name: string, type: string }> }
};

/**
 * Open a pane container (dock or workspace center) without focusing it
 * @export
 * @param {string} URI
 * @returns {Promise}
 *

@nteract/data-explorer

Transform for data resource JSON

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular @nteract/data-explorer functions

Similar packages