robotology-superbuild
robotology-superbuild copied to clipboard
Document how to add Windows Terminal profile for a given Conda environment
Similar to https://dev.to/voodu/windows-terminal-conda-d3e, but now Windows Terminal permit to add new profile from GUI:
Interestingly, @sgiraz did not have the "Add new" section. I just installed Windows Terminal from Windows Store, and I have it:
Hi @traversaro, I noticed that too. In my case, the last time, this option wasn't visible due to the small size of the window.
Said that, now I'm trying the new Windows Terminal Preview which contains the latest features as they are developed.
For example, an useful option I found is the possibility to split the tab using context menu maintaining the current profile. Of course there have been introduced more other interesting features.
Another useful trick to document is to define a profile that both activate a conda environent, and also calls the custom setup.bat
scripts that needs to be called when the superbuild is compiled from source (see https://github.com/robotology/robotology-superbuild/blob/master/doc/conda-forge.md#run-software-installed). Probably we can steal the same trick used in ROSOnWindows docs (see http://wiki.ros.org/Installation/Windows). The trick is to concatenate commands with &&
.
Yep. Let me paste here the screen of the profile just for reference:
In general, the command has the following pattern:
cmd.exe /k %HOME%/AppData/Local/mambaforge/Scripts/activate.bat <your-conda-env> && call <your robotology-superbuild-installation-path>/build/install/share/robotology-superbuild/setup.bat
According to @S-Dafarra this was something he was missing during one of the first actual tests of the conda-based Windows robotology-superbuild installation. In particular, for actual demos/deployments it would be also useful to also have specific desktop shortcuts that just open a specific Windows Terminal profile. For that the info in https://github.com/microsoft/terminal/issues/6366 could be useful.
Nice to know! I think we can start with the custom profile for the time being
Thanks @traversaro @sgiraz, I have added a custom profile in a Windows machine in our setup (icub-virtualizer
). In our case the installation of mamba
was in a different folder. Here the command I used inside the profile:
cmd.exe /k C:\mambaforge\Scripts\activate.bat robsub && call C:\robotology-superbuild\build\install\share\robotology-superbuild\setup.bat
I have also found a yarpino icon in YARP
and used it as an icon.
Here how it looks when opening Windows Terminal
:
cc @isorrentino @RiccardoGrieco @kouroshD @lrapetti @EhsanRanjbari
@traversaro I'm struggling with an error while trying to install Windows Terminal on the new ALIENWARE IITICUBLAP290.
Do you know what could be going on here?