Browser¶
Opening URLs in a browser is not a juno.* module — use
Python’s standard webbrowser module directly:
import webbrowser
webbrowser.open("https://juno.sh")
The signatures match webbrowser upstream:
webbrowser.open(url, new=0, autoraise=True)
webbrowser.open_new(url) # equivalent to ``open(url, new=1)``
webbrowser.open_new_tab(url) # equivalent to ``open(url, new=2)``
On iOS:
newcontrols where the URL opens.0keeps it inside the app — an in-app web view that slides up alongside the script’s console under Run Script, or the system Safari when running from a notebook. Any non-zero value forces the system Safari, soopen_newandopen_new_tabalways escape the app.autoraiseis accepted for API parity but ignored.