README.md 636 字节
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
D
daminglu 已提交
16 17
mkdir -p server/visualdl/frontend/dist
cp -r frontend/dist server/visualdl/frontend/dist
Q
qiaolongfei 已提交
18 19
```

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


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