jupyter-display-area
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "jupyter-display-area", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Web component for Jupyter kernel rich output/display", | ||
@@ -19,4 +19,5 @@ "main": "dist/jupyter-display-area.js", | ||
"clean": "rimraf dist/* lib/*", | ||
"open:dev": "opener http://localhost:9090", | ||
"dev": "npm run open:dev -s & parallelshell 'npm run serve -s' 'npm run watch -s'" | ||
"live-reload": "live-reload --port 9091 dist/ demo/", | ||
"open:dev": "opener http://localhost:9090/demo/", | ||
"dev": "npm run open:dev -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'" | ||
}, | ||
@@ -45,4 +46,5 @@ "repository": { | ||
"dependencies": { | ||
"ansi-to-html": "^0.3.0", | ||
"transformime": "0.0.2" | ||
} | ||
} |
@@ -5,14 +5,6 @@ # jupyter-display-area | ||
## Build | ||
## Installation | ||
```bash | ||
npm install | ||
``` | ||
Resulting web component is in `dist/jupyter-display-area.html`. | ||
## Run the current demo | ||
```bash | ||
npm run serve | ||
npm install jupyter-display-area | ||
``` | ||
@@ -44,1 +36,27 @@ | ||
``` | ||
## Build | ||
```bash | ||
npm run build | ||
``` | ||
### Browserified build | ||
* `dist/jupyter-display-area.html` - Web Component with fully inlined scripts | ||
* `dist/jupyter-display-area.local.html` - Web Component with separate script | ||
* `dist/jupyter-display-area.js` - Script to pair with jupyter-display-area.local.html | ||
### ES5 build and direct `src` | ||
The transpiled ES5 javascript ends up in `lib/` while the original ES6 sources | ||
are in `src/`. These are intended for use in Electron/Atom, though you may want | ||
to just use the browserified/bundled web component. Your choice! | ||
## Dev | ||
Run npm run dev to do automated watch, build, serve, and live-reload. | ||
```bash | ||
npm run serve | ||
``` |
import {Transformime} from "transformime"; | ||
import {TracebackRenderer} from "./traceback-renderer"; | ||
@@ -30,2 +31,4 @@ (function() { | ||
this.transformime.renderers.push(new TracebackRenderer()); | ||
// 'Private' | ||
@@ -91,3 +94,3 @@ this._outputs = []; | ||
case 'execute_input': | ||
// Explicit ignore of status changes | ||
// Explicit ignore of status changes and input | ||
return; | ||
@@ -151,3 +154,3 @@ default: | ||
case 'error': | ||
bundle = this.createErrorBundle(json); | ||
bundle = {'jupyter/traceback': json}; | ||
break; | ||
@@ -154,0 +157,0 @@ default: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
223856
17
61
2
1766
2
1
+ Addedansi-to-html@^0.3.0
+ Addedansi-to-html@0.3.0(transitive)
+ Addedentities@1.1.2(transitive)