How to use a custom Callback with Trainer.from_argparse_args
❓ Questions and Help
Before asking:

search the issues.
search the docs.


What is your question?
I'd like specify a custom Callback while passing argparse paramaters using Trainer.from_argparse_args
Code
For example, I've tried something like this with no success:
trainer = Trainer(callbacks=[CustomCallback()]).from_argparse_args(args)
which doesn't seem to properly apply the callback.
What is the proper way to define a custom callback within a trainer when using from_argparse_args?
What have you tried?
However, this DOES work as expected when calling from checkpoint:
trainer = Trainer(
        resume_from_checkpoint=ckpt_fname,
        callbacks=[CustomCallback()])

What's your environment?

OS: Linux
Packaging: conda
Version: 0.9.0