Skip to content

Conversation

@takotab
Copy link
Contributor

@takotab takotab commented Mar 29, 2020

I really like your save functions they have already save me twice. That why I thought maybe this function that I use would also helpful.

I can imaging if you would like to remove it from the requirements since it is only useful for dev and not really for usage. But that's up to you. There is more here:

https://forums.fast.ai/t/quickly-add-changes-to-git/64152

@oguiza
Copy link
Contributor

oguiza commented Apr 6, 2020

I think your proposal is very interesting. Thanks for sharing!
I'd be interested in adding it if we can automatically get the current file name, which is difficult to get. In this way you would run the nb and get it saved, .py files created and sent to git, which I think would be great!

@oguiza
Copy link
Contributor

oguiza commented Apr 6, 2020

Actually, I know you can get your current nb name by running

%%javascript
IPython.notebook.kernel.execute('nb_name = "' + IPython.notebook.notebook_name + '"')

in a separate cell. Maybe you can integrate it with your function.

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