<?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>topic Re: Set Spyder as default Script Editor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172482#M64528</link>
    <description>&lt;P&gt;You have to set spyder to use python in the arcgis-env.&amp;nbsp; It is discussed in their help topics&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.spyder-ide.org/current/installation.html" target="_blank"&gt;Installation Guide — Spyder 5 documentation (spyder-ide.org)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there is nothing stopping you from installing spyder in Pro's environment&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; conda install spyder=5.1.5 --no-pin&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 17:33:55 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-05-10T17:33:55Z</dc:date>
    <item>
      <title>Set Spyder as default Script Editor</title>
      <link>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172162#M64521</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;Could somebody indicate to me how to reference a Spyder installation located in a separate Conda environment in ArcGIS' options such that it acts as default Script Editor?&lt;/P&gt;&lt;P&gt;I tried to reference&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the executable directly pasting C:\tools\Anaconda3\envs\spyder-env\Scripts\spyder.exe (this does not launch the program via cmd either)&lt;/LI&gt;&lt;LI&gt;the spyder-script.py by pasting "C:\tools\Anaconda3\envs\spyder-env\pythonw.exe" "C:\tools\Anaconda3\envs\spyder-env\Scripts\spyder-script.py" (this allows to open an arbitrary script from the cmd)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;to the field under Project &amp;gt; Options &amp;gt; Geoprocessing &amp;gt; Script Editor without success.&lt;/P&gt;&lt;P&gt;In advance, thank you for your advice.&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro 2.9.2 (with a clone of the default python environment) and Spyder 5.1.5 (in a separate environment).&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172162#M64521</guid>
      <dc:creator>dazu</dc:creator>
      <dc:date>2022-05-09T20:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spyder as default Script Editor</title>
      <link>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172244#M64522</link>
      <description>&lt;P&gt;Desktop shortcut&lt;/P&gt;&lt;P&gt;Target :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; C:\arc_pro\bin\Python\envs\arcgispro-py3\pythonw.exe "C:\arc_pro\bin\Python\envs\arcgispro-py3\Scripts\spyder-script.py"&lt;/P&gt;&lt;P&gt;Start in:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;C:\arc_pro\bin\Python\envs\arcgispro-py3\Scripts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project, Options, Geoprocessing, Script Editor&lt;/P&gt;&lt;P&gt;C:\arc_pro\bin\Python\envs\arcgispro-py3\pythonw.exe "C:\arc_pro\bin\Python\envs\arcgispro-py3\Scripts\spyder-script.py"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now just replace &lt;STRONG&gt;arc_pro&lt;/STRONG&gt; to your clone folder&amp;nbsp; assuming ...\bin\Python\envs\&lt;STRONG&gt;arcgispro-py3&lt;/STRONG&gt; ... will need to be edited as well with your clone name&lt;/P&gt;&lt;P&gt;Also, within spyder make sure you are point the editor to the correct python in your path(s)&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 23:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172244#M64522</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-05-09T23:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spyder as default Script Editor</title>
      <link>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172391#M64526</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;,&amp;nbsp;for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had come across your blog posts from previous years related to this topic and tried to apply the suggestions stipulated there (i.e. second bullet from my initial post, or your answer to it). Unfortunately, it does not work. I suppose it is due to the fact that spyder does not reside in the same conda environment arcgis uses...&lt;/P&gt;&lt;PRE&gt;C:\tools\Anaconda3\envs\&lt;BR /&gt;- arcgis-env&lt;BR /&gt;- spyder-env&lt;/PRE&gt;&lt;P&gt;Calling the following .bat file from the cmd I can open an arbitrary script from ArcGIS temp folder, however, setting this as default script editor does not work. What happens upon right-click on a script tool in ArcGIS, i.e. how is the script passed to the file specified under the specified script editor?&lt;/P&gt;&lt;P&gt;@ECHO off&lt;/P&gt;&lt;P&gt;SET script=%1&lt;BR /&gt;call C:\tools\Anaconda3\Scripts\activate.bat C:\tools\Anaconda3\envs\spyder-env&lt;BR /&gt;cd C:\Users\Workstation\AppData\Local\Temp\ArcGISProTemp15984&lt;BR /&gt;spyder %script%&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172391#M64526</guid>
      <dc:creator>dazu</dc:creator>
      <dc:date>2022-05-10T14:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spyder as default Script Editor</title>
      <link>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172482#M64528</link>
      <description>&lt;P&gt;You have to set spyder to use python in the arcgis-env.&amp;nbsp; It is discussed in their help topics&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.spyder-ide.org/current/installation.html" target="_blank"&gt;Installation Guide — Spyder 5 documentation (spyder-ide.org)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there is nothing stopping you from installing spyder in Pro's environment&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; conda install spyder=5.1.5 --no-pin&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 17:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-spyder-as-default-script-editor/m-p/1172482#M64528</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-05-10T17:33:55Z</dc:date>
    </item>
  </channel>
</rss>

