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

Multi-line expressions #16

Open
akdor1154 opened this issue Oct 29, 2018 · 2 comments
Open

Multi-line expressions #16

akdor1154 opened this issue Oct 29, 2018 · 2 comments

Comments

@akdor1154
Copy link

A lot of my slow computes are from pretty big expressions. Some can be split over multiple lines (e.g. for a sql script I can define the sql string earlier and cache just the execution) but others can't easily (say a big nasty nested comprehension).
It would be useful to have a multiline magic or something as well to be able to cache these.

Great lib btw!

@diallobakary4
Copy link

I am facing a similar problem with multiple loops.
A cache cell magic will really be useful in that case.

@riedel
Copy link
Member

riedel commented Oct 8, 2022

Can someone describe how to effectively use a cell cache? I guess mostly be weird to cache the output cache like caching _ . So I guess the idea would be to no execute the cell and put a cache on the last line and re-execute any assignment on that happens to be on the last line of the cell?

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

No branches or pull requests

3 participants