Hi Christos, I just released a new version of the rope plug-in. This should cooperate better with virtual environments. Please give it a try.
Am Samstag, 3. November 2018, 18:10:38 CET schrieb Christos Sevastiadis: > Hi Detlev, > > I tested the new revision and the virtual environment handling in the Shell > form is super OK. Thanks for the feedback. > > > A minor issue I have in Shell, not related to the virtual environments, is > that when the command has to print something the prompt is printed before > the result instead of be printed after, e.g. > > Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] > on Hades, Standard > [anac] > > >>> import numpy > >>> import numpy as np > >>> print(1) > >>> 1 > > print(2) > > >>> 2 > > import sys > > >>> import os > >>> sys.path > >>> ['', > > 'C:\\dev\\Miniconda3\\envs\\eric6\\Lib\\site-packages\\eric6\\DebugClients\\ > Python', 'C:\\dev\\Miniconda3\\envs\\anac\\python37.zip', > 'C:\\dev\\Miniconda3\\envs\\anac\\DLLs', > 'C:\\dev\\Miniconda3\\envs\\anac\\lib', 'C:\\dev\\Miniconda3\\envs\\anac', > 'C:\\dev\\Miniconda3\\envs\\anac\\lib\\site-packages'] > > I have to investigate this. It seems that the prompt is written too soon. > > Also, I have a question about the usage "Global Environment" setting in > Edit Virtual Environment dialog. The displaying hint didn't helped to > understand and I didn't find something about it in the documentation either. The Global Environment is just an indication, that is is not under the user control like the other ones. These cannot be deleted because of access rights and the 'Delete' button is disabled in the Virtual Environment Manager. That's it. The new 'Anaconda Environment' isn't used yet. I just included it in case it may be needed some time. > > I hope that the Autocompletion, Calltips and Code Documentation virtual > environment, Conda or not, will be solved either in this nice way. Now, I > have to install my packages both in the base and the project's virtual > environment, prepending also some directories to the Eric's execution PATH > environment variable to make them work. > Please give it a try (see above). Please be aware that the Jedi plug-in is working differently because it was contributed by a user. I have to change the code to the way rope does it. Regards, Detlev PS: Do you think an interface to the 'conda' command to create Anaconda virtual environments and install packages into them would be handy? If so, can you advise which conda commands should be included in there? The creation command would go into the Virtual Environment Creation dialog along the venv and virtualenv commands. -- Detlev Offenbach [email protected] _______________________________________________ Eric mailing list [email protected] https://www.riverbankcomputing.com/mailman/listinfo/eric
