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

Allowed timeout to be none #260

Merged
merged 3 commits into from
Mar 8, 2016
Merged

Allowed timeout to be none #260

merged 3 commits into from
Mar 8, 2016

Conversation

sandyshao
Copy link

Hi all, I am an undergraduate student at Berkeley working with Matthias. This is to fix the timeout problem. I set the allow_none to truw to make sure the notebook cell will continue to work. Thanks in advance for all the suggestions and advices!

@@ -93,7 +93,14 @@ def validate(self, obj, value):
},
"""Run nbconvert in place, overwriting the existing notebook (only
relevant when converting to notebook format)"""
),
'tiemout' : (
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this might be a typo ;)

Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't expect this to be a flag (which means that you give it as --timeout with no argument). If we're adding it to the command line interface, I'd expect it to be an option, so you give e.g. --timeout 20.

@willingc
Copy link
Member

willingc commented Mar 3, 2016

@sandyshao Thanks for introducing yourself and for submitting the PR. I left a small suggestion on the code. Welcome to Jupyter!

@@ -38,12 +38,14 @@ class ExecutePreprocessor(Preprocessor):
Executes all the cells in a notebook
"""

timeout = Integer(30, config=True,
timeout = Integer(10, config=True, allow_none=True,
Copy link
Member

Choose a reason for hiding this comment

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

Is there any reason we're changing the default?

Copy link
Member

Choose a reason for hiding this comment

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

No, it should be changed back to 30. I told @sandyshao to open even an unfinished PR to get used to Git/GitHub and get review / interact with you guys a bit.

@Carreau
Copy link
Member

Carreau commented Mar 3, 2016

Hey @sandyshao

Congratulation for your first PR (Pull request) and first time using git! You did great for a first time !
As you can see you already got feedback from people all around the wold before I had a change to look at your PR. @takluyver is in the UK, and @willingc is in California but CalPoly.

They will give some feedback on what you did, you will receive the feedback by email, but I suggest you look at it using GitHub interface as sometime comments are attached to a specific line. The User interface can be confusing at the beginning so feel free to ask if you have any questions if you have some.

One of the other automatic feedback you will get when you do PRs is from TravisCI, our automating testing Bot which says something like:

screen shot 2016-03-03 at 10 15 58

You should be able to click on it and see where the error came from, @takluyver already detected it, we mistakenly introduce a : at the end of a line.

When you have the time what you can do is try to fix the various comment that have been given to you, commit and sync your branch with your fork on GitHub, this will update this PR.
Then write a new message here telling us it's ok to review again. Ask questions in the meantime if you have any.

Once your changes are good enough we'll merge them into the main codebase and you'll be officially a contributor !

@Carreau
Copy link
Member

Carreau commented Mar 8, 2016

Related: Issue #256

@sandyshao Thanks for updating your commits! Feel free to leave a comment once you update, we dont' get automatically notified.

This is good enough for a first pull request ! I'm merging and we can refine later if ever needed.

Carreau added a commit that referenced this pull request Mar 8, 2016
Allowed timeout to be none
@Carreau Carreau merged commit c95b985 into jupyter:master Mar 8, 2016
@Carreau
Copy link
Member

Carreau commented Mar 8, 2016

@sandyshao congratulation to your first contribution on GitHub. Here is some (virtual) cake:

🍰

Carreau added a commit to Carreau/nbconvert that referenced this pull request Mar 8, 2016
@willingc
Copy link
Member

willingc commented Mar 8, 2016

@sandyshao Congrats! Here's to your first contribution 🍪 and 🍵

@sandyshao
Copy link
Author

hhhhh Thanks @Carreau @willingc for offering so much help!

@minrk minrk added this to the 4.2 milestone Mar 8, 2016
Carreau added a commit to Carreau/nbconvert that referenced this pull request Mar 8, 2016
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.

5 participants