0

I am trying to run the following code in Atom's Hydrogen package

import argparse
parser = argparse.ArgumentParser()
parser.parse_args()

which produces the following error

ipykernel_launcher.py: error: unrecognized arguments: -f

Any ideas why this might be happening and how to fix it?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

0

Seem to be related to this issue. Simple workaround is running import sys; sys.argv=['']; del sys;.