Pluto.jl: Don't launch browser over SSH

Created on 10 Sep 2020  路  3Comments  路  Source: fonsp/Pluto.jl

A new version merged #190 .

This brings a minorly annoying feature when using Pluto through ssh:
After doing Pluto.run()

1.-It first launches a w3m instance that takes over the terminal (So you won't see Pluto's logs)
2.- After closing w3m it tries launching all other browsers.

If you are connected through ssh to a headless system it doesn't really make sense to try opening a graphical browser.

I am not an expert, but maybe somehow checking if the process is running in an ssh session before trying to launch a graphical browser could be better?

online deployment

Most helpful comment

I agree, the most annoying thing (happens when you use a new cluster/note/machine) is when it tries to open browser and you had ssh -Y. For now you have to:

EDIT by @fonsp

Pluto.run(launch_browser=false)

All 3 comments

Can we add an argument to Pluto to disable opening browsers in general?

I agree, the most annoying thing (happens when you use a new cluster/note/machine) is when it tries to open browser and you had ssh -Y. For now you have to:

EDIT by @fonsp

Pluto.run(launch_browser=false)

How do we detect that Pluto is running over SSH? I don't think we can do that?

The launch_browser option was added exactly for these kinds of setups! I don't think there's a better way to do it, but feel free to suggest otherwise.

Pluto.run(launch_browser=false)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

fonsp picture fonsp  路  5Comments

dpsanders picture dpsanders  路  6Comments

garrison picture garrison  路  4Comments

briochemc picture briochemc  路  6Comments

mossr picture mossr  路  6Comments