1

Whenever I open a Python script in Spacemacs, I do C-c C-p to launch a console embedded - a console that is, by default, actually an iPython console.

Here is what I would love to be able to accomplish. I would like to configure it so that when I do C-c C-p, actually an embedded (i.e. not in a new external window outside Spacemacs) iPython qtconsole is created/opened instead of normal ipython console.

Note that I am not interested at all in working with Jupyter notebooks. I just want to have an ipython qtconsole inside Spacemacs.

Is such a task possible to achieve? How could I proceed to do have it like that?

  • Wouldn't you need a version of emacs that was built as a Qt application in order for this to be possible? As far as I know, there is no such thing. But perhaps I am misunderstanding your request. Reference: qtconsole.readthedocs.io/en/stable/… – deprecated Sep 5 '17 at 15:17
  • @deprecated what makes me think it would not need a version of emacs built as a Qt application, is the fact that other emacs pacakges seem to be able to do that. For instance, take a look link. The problem is that all packages like it, that implement ipython qtconsole embedded in emacs/supermacs, aim at linking jupyter notebooks. But nothing prevents one to use ipython qtconsole without notebooks. So, I think if ipython qtconsole can be within emacs for jupyter notebooks, it could be as standalone too. – Louis15 Sep 5 '17 at 21:25
  • Yes, I know about EIN. But that has nothing to do with the ipython qtconsole. It uses its own native Emacs interface to the jupyter kernel. It seems very powerful, but personally I found it difficult to use. I prefer to use ob-ipython: github.com/gregsexton/ob-ipython – deprecated Sep 6 '17 at 3:49
  • So, I think it would be best if you could specify exactly what features you are looking for, then maybe someone will be able to better help you. Why is the emacs integration with the ipython terminal console not good enough? Is it that you want to display figures inline? That can be done in org-mode with ob-ipython or just plain ob-python. – deprecated Sep 6 '17 at 4:19
  • @deprecated It surprises me that EIN achieves inline plotting in a terminal within Spacemacs without ipython qtconsole, since it then means they had to implement their own python shell. Anyways, what I need is exactly to be able to plot figures inline (what I do not want is to have to work with notebooks). Hence mimicking Spyder. There is no Spacemacs layer for ob-python. Question remains whether it would work if installed directly a traditional package. – Louis15 Sep 6 '17 at 4:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.