I’ll try that, thanks. Was hoping to be able to use test_tube
HyperOptArgumentParser to enable hyperparameter search, but guess it might not work well with nbdev.
Just as a side note, I tried to completely isolate the argument parser on an independent notebook (in case it was the fact that it got called multiple times in parallel from multiple imports) but it doesn’t work better. I would guess the problem comes from multiprocessing but it still didn’t work with
n_workers=1, so I’m not sure.
EDIT: Probably comes from a compatibility problem between nbconvert and argparse, as
notebook2script works fine and it doesn’t use nbconvert while it uses multiprocessing.