iqsharp icon indicating copy to clipboard operation
iqsharp copied to clipboard

When using tab complete, qsharp startup is run automatically

Open guenp opened this issue 5 years ago • 0 comments

Describe the bug When I type in from qsharp.chemistry import load_broo and hit the Tab key for suggestions, the startup script in qsharp/__init__.py is run automatically.

To Reproduce

  1. Install qsharp
  2. Start ipython REPL
  3. type from qsharp.chemistry import load_broo and hit the Tab key

Expected behavior I expect regular tab completion to show load_broombridge as a suggestion without any scripts triggered

Screenshots I added a manual line print("Loading") in clients/__init__.py on line 44 to show the script is being triggered. Screenshot 2020-10-21 144505 Screenshot 2020-10-21 144156

System information

  • OS: Ubuntu
  • Version: 0.12.2010.504

Additional context When I add raise ValueError() in qsharp/__init__.py right before the script, tab completion works as expected.

guenp avatar Oct 21 '20 21:10 guenp