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

nosebook-setup: configuration of scripts to run before cells #14

Open
bollwyvl opened this issue Apr 25, 2015 · 0 comments
Open

nosebook-setup: configuration of scripts to run before cells #14

bollwyvl opened this issue Apr 25, 2015 · 0 comments

Comments

@bollwyvl
Copy link
Owner

From @gramster on #12 about this line:

The startup script is because we have a config.py that gets loaded in our environment and I need to load that in the test environment too (it contains just a single import in our case).

I suggested going with the nosebook-like setup.

Additionally, it seems like accepting a dotted-notation module may be more nose-like than a path.

initial configuration would be like:

nosetests --with-nosebook --nosebook-setup=scripts.setup_environment

and then i guess scripts.setup_environment would be loaded in the kernel: if importing that module has side effects, so be it!

Borderline YAGNI, It may be desirable to implement like scrubs, where the argument can be either:

  • a string as above
  • a list of strings, to import in order (somewhat unnecessary)
  • a dict of notebook patterns to a string or list
@bollwyvl bollwyvl mentioned this issue Apr 25, 2015
4 tasks
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

1 participant