syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.66k stars 4.89k forks source link

.dir-locals.el ipython can not work well #7934

Closed hujianxin closed 4 years ago

hujianxin commented 7 years ago

Description :octocat:

Specific ipython pointed at .dir-locals.el file works not well. There is a bit plank after prompt.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart:

In [1]:         import requests
In [1]: import requests

After the first In [1], before import requests, there is a bit plank which I can not remove.

Expected behaviour: :heart: :smile:

In [1]: import requests
In [1]: import requests

The text after In[x] can align well.

System Info :computer:

hujianxin commented 7 years ago

If I use pyenv, all things are ok!

hujianxin commented 7 years ago

Because my poor English, I recordered a gif to describe this problem.

https://asciinema.org/a/55e8m1xf7bb5emdm0ay6mx0es

d12frosted commented 7 years ago

Hey, I am not sure, but I think that python-shell-virtualenv-root and flycheck-python-flake8-executable should be absolute file paths instead of relative to... whatever dir you run emacs -nw in 😸

hujianxin commented 7 years ago

@d12frosted Thanks for your rely, the same thing happens when I change to absolute file paths. And the result is the same when I change to UI Emacs.

hujianxin commented 7 years ago

IPython version: 5.1.0

d12frosted commented 7 years ago

Ok that was just a suggestion. Since I do no python coding, it was a blind one 😸

cc @TheBB @cpaulik I know you guys use Python 😸 Probably you can help here.

pwalsh commented 6 years ago

You need to add --simple-prompt --pprint args to the ipython interpreter call (python-shell-interpreter-args).

See https://emacs.stackexchange.com/questions/24750/emacs-freezes-with-ipython-5-0-0

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!