voxel51/fiftyone

[FR] Add helpful error message when using the App in a remote notebook without appropriate port forwarding

Open

#1,128 建立於 2021年7月16日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Python (400 fork)batch import
appenhancementgood first issuenotebook

倉庫指標

Star
 (4,021 star)
PR 合併指標
 (平均合併 3天 11小時) (30 天內合併 161 個 PR)

描述

When using the FiftyOne App in a remote Jupyter notebook, you need to forward the port used by the App (say YYYY):

# On local machine
ssh -N -L 5151:localhost:YYYY [<username>@]<hostname>

so that when you launch the App in a notebook cell:

# Launch the App in a notebook cell
session = fo.launch_app(dataset, port=YYYY)

you will see the App as expected.

However, if you don't forward the port, you'll see this when launching the App:

It would be helpful to the user if we detected this case and printed a helpful error message instructing the user how to forward the port and pointing them to documentation on the subject.

貢獻者指南