报错如下:
usage: ipykernel_launcher.py [-h] [--input [INPUT]]
[--label-input [LABEL_INPUT]] [--output [OUTPUT]]
[--dimensions DIMENSIONS] [--walk-step WALK_STEP]
[--num-walks NUM_WALKS]
[--window-size WINDOW_SIZE] [--iter ITER]
[--workers WORKERS] [--max-hop MAX_HOP]
[--weighted] [--unweighted] [--directed]
[--undirected]
ipykernel_launcher.py: error: unrecognized arguments: .....json
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
原因为Jupyter会读入一个默认的环境参数-f ;所以为了解决这个问题,我们可以手动移除或者忽略这个参数。
两个简单的solution:
Solution 1: