att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
432 stars 142 forks source link

Optional cell numbering cleanup function (sort of a rebase) #2384

Open s-u opened 7 years ago

s-u commented 7 years ago

Often a way to work is to do a lot of exploratory stuff and at the end fork the notebook and clean up no longer needed cells. It would be nice to have a way to re-number all cells in the notebook after such a cleanup so that the second cell doesn't have number 46 etc. Obviously, it will make merging very hard if we ever implement it, so it's up for debate if it's a good idea or not.

gordonwoodhull commented 7 years ago

Related: #1219

It can be argued that no one cares about the actual cell numbers that are stored in the gist. We could just display 1,2,3,4.... no matter what the actual cell numbers are. It would be harder to read the gist in github but not much more so.

Alternately we could adopt stable numbering with fractional cell numbers, as I first suggested in #36. This could be made backward-compatible and the stability would make diff/merge simpler.