Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone Electron app? #10

Open
AshtonSBradley opened this issue Sep 3, 2020 · 3 comments
Open

Standalone Electron app? #10

AshtonSBradley opened this issue Sep 3, 2020 · 3 comments

Comments

@AshtonSBradley
Copy link

What would it take to make a Pluto notebook into a standalone app using packagecompiler.jl? It seems like you would want to be able to open a particular notebook file by passing the path as an argument… I guess there are probably many more steps (I am not an expert)

  • Maybe using Electron?
  • Or could an app open a default browser? If the code cells could be hidden, then I guess the scope would be limited to Pluto interactivity?

I would be keen to try something, just not sure the best strategy

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

First thing to do is a launchmyplutoapp.jl standalone script that launches the notebook:

fonsp/Pluto.jl#236 heyy that's you!

The new Electron.jl package looks cool, you can use it to open the URL. Might be a heavy dependency, but on the other hand, Pluto needs the most recent version of either Firefox or Chrome, so using Electron.jl guarantees that it works (it uses recent Chrome).

Otherwise, use DefaultApplication.jl which has URL support or wait for me to get around to fonsp/Pluto.jl#190.

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

Then to compile: I have no clue! Curious to hear how it goes, your experience would be useful for me/others as well.

It would be great if you could also precompile the notebook code. This might be tricky, because Pluto spawns the notebook process itself, but if I remember correctly, the process needs to be started with a bigger "system image" or something that includes the precompiled code. But lets see how it goes!

EDIT: it's possible to pass arguments to the notebook process: https://github.com/fonsp/Pluto.jl/pull/341/files#diff-051418b4b096d180d81593e6537c6efeR89

@fonsp fonsp changed the title stand alone app? Standalone Electron app? Sep 3, 2020
@VarLad

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants