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:

  • new controls where the URL opens. 0 keeps 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, so open_new and open_new_tab always escape the app.

  • autoraise is accepted for API parity but ignored.