-
Notifications
You must be signed in to change notification settings - Fork 391
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
Be able to specify --execute run_path from CLI #595
Comments
Hello @Skylion007 , thanks for asking! Well I have a few questions/comments about this
Do these
Well, I would have said that such an option should have been in |
They are located in an 'examples subfolder, but rely on data that is conventionally stored in the root folder of the project. So they aren't expect to run at either the location of the iPyNB. Currently, I get around it by hard coding a %cd to the root of the project by using gitpython to find the root location of the project. The ReadMe and such say that all scripts should be run from the root folder, so they are executed as |
I see... this was rather simple to implement. In the upcoming release 1.6.0 you will be able to execute the notebook with either one of:
|
A release candidate is available here:
|
@Skylion007 , do you think you would have the opportunity to give a try to the RC? On my side everything seems OK, so I am thinking of doing the release tonight. Cheers! |
So I have some ipynb files that only work if run the root of my project, but there doesn't seem to be an easy way to specify that the run_path should be the CWD instead of the path of input path or output path of the arguments. The only way to get something like this behavior appears to specify that the the output = '-', but this can be restrictive. Would you consider a CLI flag to specify what the run_path of the file should be? Perhaps as an optional parameter to
--execute
?Alternatively, it might be useful as override similar to --output.
The text was updated successfully, but these errors were encountered: