<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Enhance isolated conda installation to support conda init in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idi-p/1178444</link>
    <description>&lt;P&gt;The corporate environment I work in has disabled cmd.exe and running of .bat &amp;amp; .cmd files as part of their IT Security policy and we are unable to install a separate miniconda.&amp;nbsp; We do have access to powershell and Visual Studio Code to run python scripts.&lt;/P&gt;&lt;P&gt;As of Pro 2.8, the isolated conda installation does not support conda init (&lt;A href="https://community.esri.com/t5/python-documents/what-s-new-with-python-in-arcgis-pro-2-8-the/tac-p/1064374/highlight/true#M525" target="_blank" rel="noopener"&gt;ref.&lt;/A&gt;).&amp;nbsp; This means we can not activate conda envs in powershell or VS Code and therefore can't run scripts that use additional packages installed into clones (that rely on a properly activated environment).&lt;/P&gt;&lt;P&gt;Please enhance the ArcGIS Pro isolated&amp;nbsp;conda installation to support conda init.&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 07:04:43 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2022-05-31T07:04:43Z</dc:date>
    <item>
      <title>Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idi-p/1178444</link>
      <description>&lt;P&gt;The corporate environment I work in has disabled cmd.exe and running of .bat &amp;amp; .cmd files as part of their IT Security policy and we are unable to install a separate miniconda.&amp;nbsp; We do have access to powershell and Visual Studio Code to run python scripts.&lt;/P&gt;&lt;P&gt;As of Pro 2.8, the isolated conda installation does not support conda init (&lt;A href="https://community.esri.com/t5/python-documents/what-s-new-with-python-in-arcgis-pro-2-8-the/tac-p/1064374/highlight/true#M525" target="_blank" rel="noopener"&gt;ref.&lt;/A&gt;).&amp;nbsp; This means we can not activate conda envs in powershell or VS Code and therefore can't run scripts that use additional packages installed into clones (that rely on a properly activated environment).&lt;/P&gt;&lt;P&gt;Please enhance the ArcGIS Pro isolated&amp;nbsp;conda installation to support conda init.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 07:04:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idi-p/1178444</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-05-31T07:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179024#M19740</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10780"&gt;@Luke_Pinner&lt;/a&gt;&amp;nbsp;I also work for an agency that disables cmd.exe. I have spent an inordinate amount of time thinking about this issue. My targeted conclusion is that “conda init” is the wrong approach to providing powershell integration. My recommendation is that ESRI should repurpose conda-hook.ps1 and Conda.psm1 (ships with Anacona/miniconda) and modify these scripts to work with conda build that comes with ArcGIS Pro. See this article from last year that talks about using the conda-hook.ps1 script to initialize conda and activate arcgispro-py3 environment (&lt;A href="https://nithiya.gitlab.io/post/windows-terminal-python-arcgis/" target="_blank" rel="noopener"&gt;Setting up Windows Terminal to launch an ArcGIS Pro Python prompt - Nithiya Streethran&lt;/A&gt;). The procedure in the link also requires having the full Anaconda or miniconda installation alongside ArcGIS Pro and uses their conda-hook.ps1 to activate acrgispro-py3. I have adapted this solution to work with VS Code and I haven’t seen any other post about this solution. Adding the following to your user settings.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    "terminal.integrated.profiles.windows": {
      "ArcGIS Pro": {
        "path": "powershell.exe",
        "args": ["-ExecutionPolicy","ByPass","-NoExit","-Command","&amp;amp; 'C:\\Program Files\\Anaconda3\\shell\\condabin\\conda-hook.ps1'"]
      }
    },
    "terminal.integrated.profiles.windows": {
      "Anaconda": {
        "path": "powershell.exe",
        "args": ["-ExecutionPolicy","ByPass","-NoExit","-Command","&amp;amp; 'C:\\Program Files\\Anaconda3\\shell\\condabin\\conda-hook.ps1'"]
      }
    },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for the individual project settings.json you can add…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"terminal.integrated.defaultProfile.windows": "ArcGIS Pro",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find this approach to be better than “conda init” for several reasons: “conda init” makes every instance of powershell conda aware (which some may not want); it tethers powershell to the version of conda that ran “conda init” and this may cause issues if you are using both ArcGIS Pro and Anaconda.&lt;/P&gt;&lt;P&gt;If ESRI provides a script similar to conda-hook.ps1 / Conda.psm1&amp;nbsp; (ArcGIS Pro 3.0 please!) it would allow the end user to launch separate shells either tethered to the conda that comes with ArcGIS Pro or Anaconda and they wouldn’t mangle one another’s shell environment.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 16:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179024#M19740</guid>
      <dc:creator>omdaniel</dc:creator>
      <dc:date>2022-06-02T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179366#M19751</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589871"&gt;@omdaniel&lt;/a&gt;&amp;nbsp;interesting, can you provide the link to the article? You just linked to the conda repo.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179366#M19751</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-06-02T09:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179461#M19753</link>
      <description>&lt;P&gt;Thank you for the insight&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589871"&gt;@omdaniel&lt;/a&gt;, I've forwarded this potential alternative solution to the rest of the team for consideration.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 14:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179461#M19753</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2022-06-02T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179507#M19755</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10780"&gt;@Luke_Pinner&lt;/a&gt;&amp;nbsp;I corrected the link in my original post, it now goes to the article, also I can go into more detail on launching arcgispro-py3 shells in a standalone terminal and from within VS Code&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 16:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179507#M19755</guid>
      <dc:creator>omdaniel</dc:creator>
      <dc:date>2022-06-02T16:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179553#M19759</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;Thank you, I can provide more detail if anyone wants to dive into this deeper. I have hacked the conda-hook.ps1 &amp;amp; Conda.psm1 to work with ArcGIS Pro even if someone doesn't have Anaconda/miniconda but my quick fix would need some work if it were incorparted into a future ArcGIS Pro. The big advantage of this proposal is that the conda that comes with ArcGIS Pro and Anaconda/miniconda can co-exist without stepping on each other; whereas, "conda init" hijacks' every instance of powershell, locking it the version of conda that ran "conda init"&lt;/P&gt;&lt;P&gt;There are a number of stackoverflow questions on this topic and if you filter the issues on microsoft/vscode-python github by "powershell conda activate" (&lt;A href="https://github.com/microsoft/vscode-python/issues?q=is%3Aissue+powershell+conda+activate+is%3Aopen" target="_blank"&gt;Issues · microsoft/vscode-python · GitHub&lt;/A&gt;) you will see that most of the response direct people towards a "conda init" approach; although, a couple of stackoverflow responses and some the the issue tracker responses suggest the same solution I suggested above. The point being that most people who go searching for a solution to this will first find what I believe to be a non-optimal solution.&lt;/P&gt;&lt;P&gt;Seeing that ESRI and Anaconda recently announced a partnership (&lt;A href="https://www.businesswire.com/news/home/20220411005675/en/Anaconda-Announces-Collaboration-with-Esri-Setting-the-Enterprise-Standard-for-Python-Across-the-Geospatial-Community" target="_self"&gt;Anaconda Announces Collaboration with Esri&lt;/A&gt;) I assume proper solution can be found perhaps in collabartion with the maintainers of microsoft/vscode-python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179553#M19759</guid>
      <dc:creator>omdaniel</dc:creator>
      <dc:date>2022-06-02T17:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179657#M19766</link>
      <description>&lt;P&gt;Thanks for updating the link &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589871"&gt;@omdaniel&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I also tried&amp;nbsp;hacking the conda-hook.ps1 to work with ArcGIS Pro conda and it seems to work ok.&amp;nbsp; I didn't bother setting up the integrated terminal in VS Code, just added the call to&amp;nbsp;conda-hook.ps1 in my profile.ps1. I'm aware doing that also "&lt;SPAN&gt;hijacks" every instance of powershell, but that's what I want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now to find a way around conda activate dot sourcing&amp;nbsp;&lt;SPAN class=""&gt;etc&lt;/SPAN&gt;/&lt;SPAN class=""&gt;conda&lt;/SPAN&gt;/{&lt;SPAN class=""&gt;activate|deactivate}&lt;/SPAN&gt;.d scripts and failing because it's running in constrained language mode...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 23:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1179657#M19766</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-06-02T23:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1236399#M22322</link>
      <description>&lt;P&gt;This will be part of work for compatibility with our activation scripts after upgrading conda.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1236399#M22322</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2022-11-30T15:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1236694#M22341</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;thankyou. This will make the lives of powershell conda users much easier.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 03:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1236694#M22341</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-12-01T03:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance isolated conda installation to support conda init - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1270116#M23878</link>
      <description>&lt;P&gt;This Idea has been implemented in ArcGIS Pro 3.1.&amp;nbsp;Please see the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;What's New documentation&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for more new features in Pro 3.1.&lt;/P&gt;&lt;P&gt;The Ideas in ArcGIS Pro 3.1 blog will be wrapped up soon, highlighting all Ideas implemented in this release, including this one. Once complete, I will add the link to this comment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 21:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1270116#M23878</guid>
      <dc:creator>AmeliaBradshaw</dc:creator>
      <dc:date>2023-03-21T21:18:58Z</dc:date>
    </item>
  </channel>
</rss>

