Make notebook spec file optional
@@ -49,13 +49,16 @@ def start(ctx, file, u):
$ polyaxon -p user12/mnist notebook start -f file -u
```
"""
- file = file or 'polyaxonfile.yml'
+ plx_file = None
+ plugin_job = None
+ if file:
plx_file = check_polyaxonfile(file, log=False, is_plugin=True)
# Check if we need to upload
if u:
ctx.invoke(upload)
+ if plx_file:
project = ProjectManager.get_config_or_raise()
if not equal_projects(plx_file.project.name, project.unique_name):
Printer.print_error('Your polyaxonfile defined a different project '
