README.md 1.34 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
NNI is under development to support JupyterLab.
You can install this extension to preview the feature.

Currently you can view NNI web UI inside JupyterLab.

## Install ##

To preview the extension, you need to have `nni` and `jupyterlab` installed at first:

```
$ pip install nni jupyterlab
```

Then run following command to register extension:

```
$ nnictl jupyter-extension install
```

It does not have prompt message. Exit without error means success.

## Run ##

For now, the extension does not support creating experiment, so you have to create one with nnictl:

```
$ nnictl create --config <experiment-directory>/config.yml
```

And you need to launch JupyterLab:

```
$ jupyter lab --ip=0.0.0.0
```

Following JupyterLab's guide to open its web page, you should find an NNI icon.
Click the icon and it will open NNI web UI for your running experiment.

## Uninstall ##

To uninstall (or more accurately, unregister) the extension, run following command:

```
$ nnictl jupyter-extension uninstall
```

## Known Issues ##

The JupyterLab extension is under development and there are many issues need to fix before public announcement:

  * Clicking a link in experiment management page will open it outside JupyterLab. To fix it will need modify in web UI.
  * Downloading log file might not work.
  * Post requests (update experiment config) might not work.