Skip to content

Conversation

@ttimasdf
Copy link

@ttimasdf ttimasdf commented Apr 23, 2017

I encountered several problems launching virtualenv in REPL. After read through the source I've found that it launch interactive shell from lines of code, in ipy_repl.py. This caused two problems:

  • sys.path will not correctly include an empty string according to documentation, therefore can't search for module in the current working directory.
  • up and down arrow key for command history will not work unless the cursor is in the last line. (work well after tested again)

Is that piece of work a little bit redundant? I'm confusing of what bugs it solves comparing to the bugs it brings.

My environment: OSX 10.11 with latest dev build of Sublime

@ttimasdf
Copy link
Author

Even with master branch it raised exceptions as well

/Users/tim/.virtualenvs/ipy/lib/python3.6/site-packages/IPython/config.py:13: ShimWarning: The `IPython.config` package has been deprecated since IPython 4.0. You should import from traitlets.config instead.
  "You should import from traitlets.config instead.", ShimWarning)
/Users/tim/.virtualenvs/ipy/lib/python3.6/site-packages/IPython/terminal/console.py:13: ShimWarning: The `IPython.terminal.console` package has been deprecated since IPython 4.0. You should import from jupyter_console instead.
  "You should import from jupyter_console instead.", ShimWarning)
/Users/tim/.virtualenvs/ipy/lib/python3.6/site-packages/IPython/frontend.py:21: ShimWarning: The top-level `frontend` package has been deprecated since IPython 1.0. All its subpackages have been moved to the top `IPython` level.
  "All its subpackages have been moved to the top `IPython` level.", ShimWarning)
/Users/tim/.virtualenvs/ipy/lib/python3.6/site-packages/IPython/terminal/console.py:13: ShimWarning: The `IPython.terminal.console` package has been deprecated since IPython 4.0. You should import from jupyter_console instead.
  "You should import from jupyter_console instead.", ShimWarning)
Traceback (most recent call last):
  File "/Users/tim/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/config/Python/ipy_repl.py", line 45, in <module>
    from IPython.frontend.terminal.console.app import ZMQTerminalIPythonApp
ModuleNotFoundError: No module named 'IPython.frontend.terminal.console.app'; 'IPython.frontend.terminal.console' is not a package

***Repl Closed***

So maybe this script should be depreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant