omar-masmoudi/jupyter-runner

problem with parameter-passing

Opened this issue · 3 comments

Hi,
I installed your code to pass arguments while running ipynb file
but I got "UnrecognizedFlagError : Unkown command line flag 'f'"

I made parameter_file
image

and ran with command
"jupyter-runner --parameter-file=parameter_file main.ipynb"

but I got unrecognizedFlagError.

Do I have to make parameter file in certain way?
or is there other ways to solve this problem?

it runs fine with main.py ( same program with main.ipynb; just file format is different) when I run with "python main.py --parameters~"

thank you for your answer!
I changed parameter file with your way

it prints right after command

\main.ipynb with parameters: {'datasource': 'miniimagenet', 'metatrain_iterations': '60000', 'meta_batch_size': '4', 'update_batch_size': '1', 'update_lr': '0', 'num_updates': '5', 'num_classes': '5', 'logdir': 'logs', 'num_filters': '32', 'max_pool': 'True'}

But I still get UnrecognizedFlagError.

<-[1;31mUnrecognizedFlagError<-[0m: Unknown command line flag 'f'
UnrecognizedFlagError: Unknown command line flag 'f'

Can you show your full command line ?