Issue using visualizer on Raspberry Pi with monitor

Trying to use the visualizer with PLR running of raspberry pi with a monitor. It works on my mac but when I try to run it on VS Code on the pi I get this:

Websocket server started at http://127.0.0.1:2121
File server started at http://127.0.0.1:1337 . Open this URL in your browser.
NK) Use right-arrow or <return> to activate.PyLabRobot Visualizer (v0.1)40mFrame Save Interval: 81 96(BUTTON) Start Recording(BUTTON) Stop Recording____________________ (BUTTON) Download GIFLoading...127.0.0.1___________ 1337________________ 127.0.0.1___________2121________________Arrow keys: Up and Down to move.  Right to follow a link; Left to go back.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Getting http://127.0.0.1:1337/ 

And the cell never finishes running. If i go to the link, I can visualize the deck and if I interrupt the cell then its all fine. So it seems like the visualizer is working but the cell never finishes running and you can’t proceed without interrupring. Any advice on troubleshooting this?

i think it has to do with the default browser

the string “Use right-arrow or to activate” appears here: https://lynx.invisible-island.net/lynx2.8.4/breakout/LYMessages_en.h

lynx is a “text based web browser”

PLR calls webbrowser.open if the visualizer is initialized with open_browser=True (default)

can you try:

visualizer = Visualizer(..., open_browser=False)
2 Likes

That worked! It just gave the server link and then that opened to the default browser!

2 Likes