Skip to content

ENH: Add command line script to fetch a notebook.#31

Merged
ssanderson merged 3 commits intomasterfrom
add-fetch-script
Jul 6, 2017
Merged

ENH: Add command line script to fetch a notebook.#31
ssanderson merged 3 commits intomasterfrom
add-fetch-script

Conversation

@ssanderson
Copy link
Copy Markdown
Contributor

Usage:

$ pgcontents fetch -l postgresql://db_user:db_pass@hostname/database -u ssanderson -f Untitled.ipynb -k password

@ssanderson ssanderson requested a review from sjahl July 6, 2017 16:04
Usage:

```
$ pgcontents fetch -l postgresql://db_user:db_pass@hostname/database -u ssanderson -f Untitled.ipynb -k password
```
bin/pgcontents Outdated
if clear_output:
ClearOutputPreprocessor().preprocess(nb, resources=None)

nbformat.write(nb, open(filename, 'w'), version=nbformat.NO_CONVERT)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this write to output instead of filename?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, good catch!

@sjahl
Copy link
Copy Markdown

sjahl commented Jul 6, 2017

I tested this in staging, and it worked fine -- used it prod shortly thereafter with success. Thanks!

@ssanderson ssanderson merged commit 495ab66 into master Jul 6, 2017
@ssanderson ssanderson deleted the add-fetch-script branch July 6, 2017 17:37
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.

3 participants