-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Display banner from Pluto.__init__, not during precompile #2628
Conversation
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/mgkuhn/Pluto.jl", rev="banner2")
julia> using Pluto |
@@ -25,6 +25,7 @@ PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" | |||
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" | |||
RegistryInstances = "2792f1a3-b283-48e8-9a74-f99dce5104f3" | |||
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00" | |||
Scratch = "6c6a2e73-6563-6170-7368-637461726353" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a compat entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compat entry added (needs at least Scratch 1.1 due to the underscore used in the key banner_shown
)
Use the Scratch package to record if the banner has already been shown. fixes fonsp#548
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for contributing! Will merge after the CI failures are figured out :)
Retried the frontend tests a bunch of times, it looks like the Pluto server is not launching or is not accepting connections, but the logs are hidden. Working on #2645 to be able to see the logs. |
Move the printing of the banner into an init function, such that it gets printed at load time, and not any more during pre-compilation (where Pkg currently distractingly presents the banner as a warning).
To preserve the current behaviour that the banner is only shown once after installing the package, use the Scratch package to record if the banner has already been shown.
fixes #548
fixes #2589