Argparse in iPython notebook: unrecognized arguments: -f
It's better to use @nbro 's answer for Jupyter execution.
args = parser.parse_args(args=[])
If you want to manage parameters as class format, you can try this.
class Args:
data = './data/penn'
model = 'LSTM'
emsize = 200
nhid = 200
args=Args()
You can try args = parser.parse_args(args=[])
.