-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
🌟 Featured notebooks & new main menu #2048
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mooiere kleurtjes Co-Authored-By: merlijnkersten <[email protected]>
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="featured-notebooks")
julia> using Pluto |
…into featured-notebooks
Maintainer instructions are here: https://github.com/JuliaPluto/pluto-developer-instructions/blob/main/How%20to%20update%20the%20featured%20notebooks.md |
Merging! Happy summer everyone 🌟 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have been working on a new main menu for Pluto, with a focus on a new featured notebook system! Here is a screenshot:
Featured Notebooks
Right now we have a very small set of sample notebooks, and they are not updated frequently. We should change this! My idea is: let's make Pluto an awesome platform for the Pluto and Julia community to share their work, to make it more attractive for people to contribute.
The major changes compared to our old sample system are:
Features are listed directly in the main menu. Everyone who uses Pluto will see it!
(TODO) An exact copy of the "Featured" UI will also be available on plutojl.org, with execution powered by binder, and PlutoSliderServer coming soonish
You can read Features directly without running them (we load a precomputed statefile from our servers)
Features are developed and generated on a separate repository: https://github.com/JuliaPluto/featured. This repository is added as a "source" to a local file:
featured_sources.json
. In the future, you could add more sources here, like a source specific to astrophysics notebooks, orFons's Big Mess of JavaScript Notebooks.json
.Notebooks can now have a:
We can group notebooks together in collections about a single topic
We can give special labels to notebooks, "New!":
Image from https://cataas.com/
Offline mode
When unable to load the notebook collection from the web, we show our classic set of notebooks:
These don't have a statefile, and clicking them will load them in the old way. This means that we need to leave all of the old sample-related code, and the old sample notebooks. Sad, but on the bright side, removing the sample notebooks would probably mean that our project gets classified by GitHub as "JavaScript" instead of "Julia" 🙃
TODO
Pluto.frontmatter
#2008fetch
ing sourcesfetch
ing notebook files - launch_params: allow specificintegrity
for notebookfile and statefile urls #2052Remove old samples?POST /notebookupload
: allow specifying a filename #2051Maybe the URL for viewing a sample could look nicer?whatevsfeatured_sources.json
in bundle? maybe just put it in source? wait 3 years?