Skip to content
← Back to Community
Opening repl browser with justpy
Profile icon
smfrederico

Hi everyone! Has somene got any idea of how to run a justpy application ( a web page) so that a user may see it ? In other words, how can somene see the repl webbrowser open? Would it be fine to just use webbrowser library to open and see the local repl browser? Thanks in advance!

Voters
Profile icon
smfrederico
Comments
hotnewtop
Profile icon
WilliamWong15
Profile icon
smfrederico

@adityavengata, @xfinnbar and @wumi4, thank you all. Today the repl manage to load justpy library. I guess yesterday the repl server had a quirk. Unfortunately, even though I used the commands you had advised, I didn´t make it. I´ve just sent a message to "[email protected]". I hope they may enlighten me.

Profile icon
[deleted]

@smfrederico
Thats super complex, just use webbot to trigger the browser:

from webbot import Browser repl = Browser() repl.go_to("https://google.com")

If your justpy works fine, you can then open a new tab and connect to the localhost or any web page

Profile icon
smfrederico

The repl has not loaded justpy, even though I had typed pip install

Profile icon
xfinnbar

@smfrederico Use the packages button on the sidebar. It looks like a cube.

Profile icon
smfrederico

I added these lines "webbrowser.open('https://replit.com:8001/')", but to no avail :(

Profile icon
Wumi4

I don't know. Try typing firefox to the shell or something like that. Maybe it will trigger the GUI.