README.md 596 字节
Newer Older
Q
qiaolongfei 已提交
1 2 3 4
# VisualDL


### How to use
Q
Qiao Longfei 已提交
5
#### Step 1: build frontend
Q
qiaolongfei 已提交
6
```shell
Q
Qiao Longfei 已提交
7 8 9
cd frontend
npm install
npm run build
Q
qiaolongfei 已提交
10 11
```

Q
Qiao Longfei 已提交
12 13 14
this step will generate a dist directory under frontend

### Step 2: copy frontend/dist to server/visualdl/frontend/dist
Q
qiaolongfei 已提交
15
```shell
Q
Qiao Longfei 已提交
16
cp -r frontend/dist server/visualdl/frontend/
Q
qiaolongfei 已提交
17 18
```

Q
Qiao Longfei 已提交
19 20 21 22 23 24 25 26 27
#### Step 3: build and install Python package
```shell
cd server/visualdl
python setup.py bdist_wheel
cd dist
pip install --upgrade visualdl-0.0.1-py2-none-any.whl
```


Q
qiaolongfei 已提交
28 29
### Step 3: run
```
Q
Qiao Longfei 已提交
30 31 32
# cd to visualdl install dir
cd /usr/local/lib/python2.7/site-packages/visualdl/
python visual_dl.py --port=8888
Q
Qiao Longfei 已提交
33
```