Skip to main content
added 6 characters in body
Source Link
Arktik
  • 992
  • 4
  • 17

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.

Edit:

I've just come across the following. One can run IPython specific commands from script (or as a send string) using the following command.

get_ipython().run_line_magic('pinfo2', 'list''object')

This is equivalent to running listobject?? in the IPython console. pinfo is equivalent to listobject?.

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.

Edit:

I've just come across the following. One can run IPython specific commands from script (or as a send string) using the following command.

get_ipython().run_line_magic('pinfo2', 'list')

This is equivalent to running list?? in the IPython console. pinfo is equivalent to list?.

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.

Edit:

I've just come across the following. One can run IPython specific commands from script (or as a send string) using the following command.

get_ipython().run_line_magic('pinfo2', 'object')

This is equivalent to running object?? in the IPython console. pinfo is equivalent to object?.

added 308 characters in body
Source Link
Arktik
  • 992
  • 4
  • 17

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.

Edit:

I've just come across the following. One can run IPython specific commands from script (or as a send string) using the following command.

get_ipython().run_line_magic('pinfo2', 'list')

This is equivalent to running list?? in the IPython console. pinfo is equivalent to list?.

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.

Edit:

I've just come across the following. One can run IPython specific commands from script (or as a send string) using the following command.

get_ipython().run_line_magic('pinfo2', 'list')

This is equivalent to running list?? in the IPython console. pinfo is equivalent to list?.

Source Link
Arktik
  • 992
  • 4
  • 17

I think the problem is with the python evaluation set-up code. It throws the syntax error as it needs a valid python syntax and "?" is IPython command line specific. I found a couple of functions that would send a string directly to the interpreter: comint-redirect-send-command and comint-redirect-send-command-to-process.

These do the job pretty well.