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

Fix smart cell indicator when source changes on start #1851

Merged
merged 3 commits into from
Apr 8, 2023

Conversation

jonatanklosko
Copy link
Member

@jonatanklosko jonatanklosko commented Apr 7, 2023

Currently there's an edge case where the smart cell generates source that differs from Livebook formatting. When a notebook is saved we format the Elixir cell, then once the notebook is open and the smart cell starts, the source is updated to match the smart cell again, so we need to hydrate LV source digest in that case too. Apart from formatting, the source could change when the user opens the notebook and bumps smart cell version (so the generated source may differ).

@github-actions
Copy link

github-actions bot commented Apr 7, 2023

Uffizzi Preview deployment-21633 was deleted.

@jonatanklosko
Copy link
Member Author

I also realised we frequently append operations to Delta and this involves two reversals, so I optimised that too. FWIW in our case, the deltas should generally have just a couple operations, so it's nothing significant.

@jonatanklosko jonatanklosko merged commit 4d46b03 into main Apr 8, 2023
@jonatanklosko jonatanklosko deleted the jk-smart-cell-digest branch April 8, 2023 08:49
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

Successfully merging this pull request may close these issues.

2 participants