fonsp / Pluto.jl

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

Remove stale 'recent' notebooks #877

Open pankgeorg opened 3 years ago

pankgeorg commented 3 years ago

definitions

stale means notebooks that no longer exist in user's filesystem (deleted or moved) recent are the notebooks that appear in the 'Welcome' page. This list is populated when you open a notebook.

useful information / pointers

The recent notebooks list is saved in the localStorage object. The list is updated on the edit page (here) and is read on the Welcome page, here

suggested implementation outline

The browser cannot check if local files exist, so the test should take place in the backend.

Communication with the Pluto backend happens through Websockets from the /edit page. Also, Pluto has some tricks to open a notebook remotely (when you click the '>' button on the recent notebook list) and understands that the file doesn't exist if you try to start the notebook it and that fails.

If you're interested in doing that and have more questions, feel free to ask here or in zulip topic on this

stillyslalom commented 3 years ago

Some other subtleties to handle:

BrettKnoss commented 3 years ago

I suggested a notebook that was suggested to be broken up into pieces. Can we have sections? Getting Started, Calculus, Statistics, Visualization (maybe something with Cairo.jl) I'd also like it if when you opened a new notebook, it asked to enter a title, or even where to save, instead of just a goofy name (can have a random name button).

pjgoodall commented 2 years ago

Why is this closed?

pankgeorg commented 2 years ago

It's a duplicate of this https://github.com/fonsp/Pluto.jl/issues/877 right?

BrettKnoss commented 2 years ago

I saw that notbooks can be closed and reopened from the main menue. It would be nice if there was a way to refresh a whole notebook, even if updating something like include(). I already mentioned the value of being able to reload sections.

pjgoodall commented 2 years ago

@pankgeorg Yes #877 expresses my needs - thankyou.

shengjiex98 commented 2 years ago

I second this--sometimes just renaming the parent folder of a notebook leaves multiple copies of the same notebook in the recent section and things quickly become messy. I think a simple Clear Recent Files button would suffice.

jcbritobr commented 1 year ago

A button to clear recent notebooks in interface would be nice.

gganapat commented 6 months ago

If someone really, truly wants to clear the list (like I did), one way is to access console (through Tools/Browser Tools/Web Developer Tools) and type "localStorage.clear()" in console, press"return" and that will remove all the files in the "My work". I assume you folks know it, but this could help other people who are not fully aware of this technique.

Gani --

ghost commented 4 months ago

gganapat - Dec 11, 2023 wrote:

  • Access console through Dev Tools and type "localStorage.clear()" in console at blinking cursor
  • press "return" and that will remove all the files in the "My work"

This worked for me - thanks.

(comment formatted by @pankgeorg)

scls19fr commented 4 months ago

Hello,

Thanks for Pluto.jl. That's a great software.

When clicking on a recent file I'm getting

Can't find a file here
Please check whether C:\Users\scell\live_plot_sin.jl exists.

[Go back](http://localhost:1234/open?path=C%3A%5CUsers%5Cscell%5Clive_plot_sin.jl#)

Maybe in such a case you could ask user if he want to remove this entry from Recent notebooks list.

Any opinion ?