hoangKnLai / vscode-ipython

VSCode Extension integrating Editor with IPython console.
MIT License
18 stars 5 forks source link

Empty --InteractiveShellApp.exec_lines= not needed #21

Closed GrazMir closed 1 year ago

GrazMir commented 1 year ago
 if (cmds !== undefined) {
      startupCmd = " --InteractiveShellApp.exec_lines=";

This empty argument is not necessary and crashes the launch.

hoangKnLai commented 1 year ago

Got it. Will fix soon.

hoangKnLai commented 1 year ago

Just published v2023.2.2 with fixes. If your issue is fixed, please leave a comment and close this issue. Thanks!

GrazMir commented 1 year ago

Thanks. That's better but I am still having this issue:

[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization:
[TerminalIPythonApp] CRITICAL | The 'exec_lines' trait of a TerminalIPythonApp instance must be a list, but a value of class 'str' (i.e. '%autoreload 2') was specified.
hoangKnLai commented 1 year ago

I'll need help with replicating the problem. Can you give me screenshot of the terminal ipython ... call and what version of IPython you're using?

GrazMir commented 1 year ago
image

The ipython version is: 7.19.0

hoangKnLai commented 1 year ago

Hmm, looks like either a bad setting or something wrong with IPython terminal configuration. Are you using a custom IPython profile or something like that?

For reference, here are some configuration I'm using to test the extension:

In [1]: print('Hello, World!') Hello, World!

In [2]:

GrazMir commented 1 year ago

ok thanks. I'll close the issue!