nuplan-devkit icon indicating copy to clipboard operation
nuplan-devkit copied to clipboard

scenario visualization script can't display on remote machine

Open maozaizhou opened this issue 3 years ago • 2 comments

Hi, when I run the scenario visualization jupyter script in local , it works fine both in vscode and chrome browser, but it only show selection bar when I run the same script on remote machine, appreciate if any suggestion.

local vscode image

remote vscode image

maozaizhou avatar Sep 07 '22 03:09 maozaizhou

Hi @maozaizhou Thanks for reporting that, but do u see any errors/messages in CLI?

kokseang-motional avatar Sep 13 '22 14:09 kokseang-motional

Hi @maozaizhou Thanks for reporting that, but do u see any errors/messages in CLI?

there are some error like [W 23:01:22.278 NotebookApp] Forbidden [W 23:01:22.278 NotebookApp] 403 GET /api/kernelspecs reported from jupyter

maozaizhou avatar Sep 15 '22 08:09 maozaizhou

I have the same issue. Any updates or recommendations would be appreciated. The dataset is too big to be stored on a local machine.

lilyzhng avatar Oct 03 '22 04:10 lilyzhng

The issue occurs because the bokeh app (used to render) runs on a random port. We haven't finalized a fix yet, but if it's not ready by the v1.0 release, I'll share a more detailed workaround here. In the meanwhile, you can work around it by either

  • port-forwarding the full range of randomly assigned ports -- I believe the first few paragraphs of this issue still apply
  • cherry-picking commit ccf8a176a51fec597bea0f19547af53f5fc51790, which fixes the port bokeh runs on as 8889 (configurable). You'll need to forward both the port your notebook runs on and whatever you pass as bokeh_port. I can't guarantee it doesn't break anything else yet :)

Let me know if you run into any issues!

michael-motional avatar Oct 03 '22 20:10 michael-motional

It works for me by assign bokeh_port which is mentioned by @michael-motional but I need to change another bokeh_port when I choose another Scenario.

BeautyCJ avatar Nov 22 '22 11:11 BeautyCJ