Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch virtualenv directly #515

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Launch virtualenv directly #515

wants to merge 3 commits into from

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.

None yet

1 participant