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

Option to automatically save newly created variables in the cell #8

Open
rossant opened this issue Oct 13, 2013 · 6 comments
Open

Option to automatically save newly created variables in the cell #8

rossant opened this issue Oct 13, 2013 · 6 comments

Comments

@rossant
Copy link
Owner

rossant commented Oct 13, 2013

%%cache [file] --autovars automatically detects the variables that have been created in the cell, by looking at the namespace dictionaries before and after the cell's execution.

@herrlich10
Copy link

What if the user really don't want to cache any variable (e.g., because they are too large in memory and are useless in the subsequent cells) except for the rich output?

@rossant
Copy link
Owner Author

rossant commented Oct 22, 2013

@herrlich10 good point. I've updated the issue. Not sure about the option name: any suggestion?

@herrlich10
Copy link

Do you mean --autovars? I think its fine. What about --infer, maybe not specific enough?

@mpelko
Copy link
Contributor

mpelko commented Oct 23, 2013

How about --all?

lpmp

On Wed, Oct 23, 2013 at 5:55 AM, herrlich10 [email protected]:

Do you mean --autovars? I think its fine. What about --infer, maybe less
specific?


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-26880605
.

@rossant
Copy link
Owner Author

rossant commented Oct 23, 2013

How about --all?

It may mean "all variables in the namespace" whereas I rather mean "all new variables in the cell. That being said we could have "--all" for all variables, and something else for the variables that have just been created.

@mpelko
Copy link
Contributor

mpelko commented Oct 23, 2013

Fair point, --allnew would then sound most intuitive to me (as in @@cache
--allnew).

lpmp

On Wed, Oct 23, 2013 at 8:26 AM, Cyrille Rossant
[email protected]:

How about --all?

It may mean "all variables in the namespace" whereas I rather mean "all *
new* variables in the cell. That being said we could have "--all" for *all

  • variables, and something else for the variables that have just been
    created.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-26885260
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants