fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.94k stars 285 forks source link

[FR] Add kwarg to Pluto.run() for choosing browser #1057

Closed KronosTheLate closed 3 years ago

KronosTheLate commented 3 years ago

Referencing to the discussion at discource that spawned this issue.

I use Firefox as my default browser, but it seems like it does not handle the markdown or HTML well - I am having most of the lines in my notebook spanning two lines instead of 1, which really clutters things (see my issue about it). So I want to keep my default browser, but have Pluto notebooks launch in Chrome. Would it be possible to add a kwarg, something like path_to_browser, which would allow me to chose the browser to launch in?

fonsp commented 3 years ago

I am declining this feature request because we need to prioritize. You can write a Pluto launcher script yourself or use a fork of Pluto

holomorphism commented 3 years ago

@KronosTheLate I am using Ubuntu (Xubuntu) Linux and have set the following command in the GUI launcher button to start Pluto.

zsh -c "julia -e 'import Pluto; Pluto.run(;require_secret_for_access=false)'"

image

If you are also using Linux, you can change this to the following and it should work as you wish.

zsh -c "julia -e 'import Pluto; Pluto.run(;require_secret_for_access=false,launch_browser=false)' & { sleep 3; google-chrome-stable http://localhost:1234; }"

The following points should be modified according to your environment.