Wing version 7.2 has been released, and we've been looking at the new features in this version. So far we've covered reformatting with Black and YAPF, Wing 7.2's expanded support for virtualenv, and using python -m with Wing.
This time we'll take a look at what Wing 7.2 provides for people that are using Anaconda environments created with conda create as an alternative to virtualenv.
What Wing 7.2 Adds
Wing 7.2 supports creating new Wing projects that use an existing Anaconda environment, so that the environment is automatically activated whenever the project is open. Debug processes, unit tests, the integrated Python Shell, and OS Commands all run in the activated environment.
Wing 7.2 also added the ability to create and configure a new Anaconda environment while creating a new Wing project.
Using an Existing Anaconda Environment
Wing tries to discover existing Anaconda environments and lists them in the drop down menu next to the Activated Env option under Python Executable in Project Properties and the New Project dialog, which are both in the Project menu:
Selecting one of the listed Anaconda environments configures the project to automatically activate that environment whenever the project is open:
If Wing cannot find your Anaconda environment automatically, you can instead manually enter the command that activates it.
Creating New Projects
Wing can also create a new Anaconda environment at the same time that a new Wing project is created. This is done by selected New Project from the Project menu and choosing Create New Anaconda Environment as the project type:
Wing will create the new environment, install packages, and then configure and save a project file. You can immediately start working in your new environment, which Wing automatically activates for you whenever you have the project open.
That's all there is to it!
For some additional details, see Using Wing with Anaconda.
That's it for now! We'll be back soon with more Wing Tips for Wing Python IDE.
As always, please don't hesitate to email support@wingware.com if you run into problems or have any questions.
from Planet Python
via read more
No comments:
Post a Comment