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

notebook: --display-cache in notebooks #1183

Closed
zilto opened this issue Oct 15, 2024 · 0 comments
Closed

notebook: --display-cache in notebooks #1183

zilto opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zilto
Copy link
Collaborator

zilto commented Oct 15, 2024

Currently, the cell magic %%cell_to_module allows for --display / -d to view the graph of the current module. By default, it calls Driver.display_all_functions(), but when combined with --execute / -x it will switch to displaying Driver.visualize_execution().

With the recent introduction of caching, it would be useful to view the cache behavior (what node was retrieved / recomputed) too. This is possible through Driver.cache.view_run(). This visualization is different from the other two because it's only available after execution is completed.

For these reasons, it seems to make sense to have a separate flag --display-cache that would display the Driver.cache.view_run() after execution is completed. Using %cell_to_module --display --display-cache would create a visualization at the beginning of execution and another at the end.

@zilto zilto added the enhancement New feature or request label Oct 15, 2024
@zilto zilto closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant