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

All notebooks are missing imports #3

Open
cdeil opened this issue Aug 31, 2012 · 4 comments
Open

All notebooks are missing imports #3

cdeil opened this issue Aug 31, 2012 · 4 comments

Comments

@cdeil
Copy link

cdeil commented Aug 31, 2012

All the ipython notebooks won't run out of the box because imports are missing.
Could you please add those?

@jseabold
Copy link
Owner

See: https://github.com/jseabold/tutorial/blob/master/preliminaries.py#L18 for the import assumptions. If you prefer I can add them to every file, but I just keep them in a config file.

@cdeil
Copy link
Author

cdeil commented Aug 31, 2012

I guess most users like me just want to try out something, e.g. robust estimation.
They don't know that they have to copy & paste imports from preliminaries.py.

So my suggestion would be to copy & paste the imports to each notebook or to make a file common_imports.py that contains them and then in each notebook write from common_imports import *. I like the first method better because then each notebook is really independent and I can e.g. just modify it and sent it to a fried to check out.

@jseabold
Copy link
Owner

Sure this makes sense. Just seemed cumbersome during the tutorial to have everyone type the imports each time. Easier to just drop the common import assumptions into your IPython config for the notebook profile.

@cdeil
Copy link
Author

cdeil commented Aug 31, 2012

Is there a way to have an ipython config file in the tutorial directory that is automatically picked up?
Another possibility would be to mention the imports / ipython config in a top-level README instead of in preliminaries which user's might miss (I did).

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

2 participants