|
1 |
| -# Using ipywidgets in node |
| 1 | +# Using jupyter-js-widgets in node |
2 | 2 | ## Description
|
3 | 3 | This directory is an example project that shows how you can use the widgets in
|
4 |
| -node using `jsdom` and `navigator`. It prints a list of all `ipywidget` |
| 4 | +node using `jsdom` and `navigator`. It prints a list of all `jupyter-js-widgets` |
5 | 5 | exported names to the command line.
|
6 | 6 |
|
7 | 7 | ## Try it
|
8 |
| -1. Open a command line in this directory and run `npm install`. |
9 |
| -2. In the same command line, run `node index.js`. |
| 8 | +1. Open a command line in the `ipywidgets/ipywidgets` subdirectory and run `npm install`. |
| 9 | +2. Cd into this directory and run `npm install`. |
| 10 | +3. Now open the `index.html` file. |
10 | 11 |
|
11 | 12 | ## Details
|
12 | 13 | If you plan to reproduce this in your own project, pay careful attention to the
|
13 |
| -package.json file. The dependency to ipywidgets, which reads |
14 |
| -`"ipywidgets": "file:../../.."`, **should not** point to `"file:../../.."`. |
15 |
| -Instead point it to the version you want to use on npm. |
| 14 | +package.json file. The dependency to jupyter-js-widgets, which reads |
| 15 | +`"jupyter-js-widgets": "file:../../../ipywidgets"`, **should not** point to `"file:../../../ipywidgets"`. |
| 16 | +Instead point it to the version you want to use on npm. |
16 | 17 |
|
17 |
| -(but really, you should let npm do this for you by running |
18 |
| -`npm install --save ipywidgets`.) |
| 18 | +(but really, you should let npm do this for you by running |
| 19 | +`npm install --save jupyter-js-widgets`.) |
0 commit comments