Anaconda is a fantastic software distribution that has everything that yous need to outset your Information Science projects. It comes with its ain package manager, conda, which includes its own command prompt. It is not bad to manage your environments and launch your tools. However, when you need more than than one command prompt open (which happens quite often), it is very abrasive to have them spread all over the place. Having them under a single window with a tab system would be much handier. Enter Windows Terminal.

In this mail, I will share the steps that I followed to incorporate Anaconda's Prompt into information technology.

0. Get Anaconda

I presume that you have already installed Anaconda. If not, you lot can download information technology from its website.

1. Get Windows Final

The Windows Final comes bundled every bit function of Windows eleven. However, if you lot have Windows ten or earlier, you lot tin can download it for free from the Microsoft App Store.

ii. Open the Windows Final JSON configuration file

Open your freshly installed Windows Concluding. Then, click on the pointer pointing downward on the tab ribbon and select Settings (or use the shortcut Ctrl + ,)

In the settings tab, look on the lesser left corner and click on Open JSON file

This will open the configuration file in your preferred text editor (Notepad++ in my example)

3. Customize the Windows Terminal JSON configuration file

In hither, nosotros will create a new profile. Go to the department profiles (which should be around line 34). And so, we will add a new element to profiles.list. Information technology should have at to the lowest degree the following elements:

  • name: Straightforward. I chose Conda
  • hidden: Nosotros actually desire to run into it, then set this to false
  • guid: Nosotros need a globally unique identifier - or GUID. Every bit its proper name states, a GUID uniquely identifies a piece of installed software amidst all of the other pieces of software on a calculator. Generating one is very piece of cake. Just open a Windows PowerShell and run the command New-Guid. Copy and paste the output hither. It must exist enclosed between curly braces.
  • commandline: This one is a bit more than cumbersome. Here, nosotros demand to specify what command line nosotros want to execute. In other words, we need to give the instruction to open up an Anaconda prompt. To do so, nosotros first need to find where information technology is in our arrangement. In Windows Start, expect for Anaconda and open the location of the Anaconda Prompt:

Then, right click on the Anaconda Prompt shortcut and go to Properties (be careful that you exercise non choose the Anaconda Powershell):

In here, copy any'due south on the field Target and paste it in an empty document of your preferred text editor. We will reshape information technology from something like this

%windir%\System32\cmd.exe "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3

to something like this

cmd.exe /K C:\\ProgramData\\Anaconda3\\Scripts\\activate.bat

Copy and paste the latter in the commandline field.

We tin as well add some additional tweaks and preferences, such as:

  • icon: Path to an paradigm that will exist used as an icon. I used a Conda one that was installed in my organisation.
  • startingDirectory: Straightforward.
  • fontFace: Your preferred font. I like Fira Lawmaking very much.
  • colorScheme: From the ones available to the Windows Final. I like One Half Dark (you can, of class, employ a different one and fifty-fifty generate a new one!)

In the end, the whole thing should look like this:

                              
1 2 three 4 5 6 7 8 nine ten xi                        
, {     "colorScheme": "One Half Dark",     "commandline": "cmd.exe /K C:\\ProgramData\\Anaconda3\\Scripts\\activate.bat",     "fontFace": "Fira Lawmaking",     "guid": "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}",     "hidden": faux,     "icon": "C:\\ProgramData\\Anaconda3\\pkgs\\conda-iv.ix.2-py38haa95532_0\\Lib\\site-packages\\conda\\beat\\conda_icon.ico",     "proper noun": "Conda",     "startingDirectory": "D:/Users/your_user_name/Documents" }                        

Don't forget the comma , at the commencement! It is needed to separate the newly created profile from the old ones. Remember to apply your own generated GUID. Lastly, be conscientious to use quotation marks accordingly. If you lot have any (syntax) errors, you will go a message from the Windows Terminal settings window. Go to the given line and column to fix them.

That's information technology! Now you can have a Conda prompt nice and tidy within the Windows Terminal:


If you take any comments, questions or feedback, leave them in the comments below or drop me a line on Twitter (@amoncadatorres). Moreover, if you lot found this useful, fun, or just desire to prove your appreciation, you can always buy me a cookie. Cheers!