<?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 Unable to drag and drop layers into notebook / filepaths are being treated like normal strings in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unable-to-drag-and-drop-layers-into-notebook/m-p/1556054#M73608</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a few weird things happen with my notebook I am running in Pro and I believe them to be related but I'm at a lost for what to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, I am unable to drag and drop layers from my contents pane into the notebook. The layer name is read simply as a string and I'm unable to convert it to a sdf (same with dragging a table and trying to read csv to a df, etc) because of this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, whenever I either drag and drop or fully type out file paths (have tried using os.path.join and double slashes when not dragging) that lead to items within a gdb, I am getting an error stating there is no such file or directory even when the file definitely exists. So there's no way I can access the items I need, either by file path or accessing via my contents pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to succeed in using the drag and drop function to grab the necessary layers and convert to spatial data frames within the same notebook when I ran it in an instance of Pro on a remote desktop, but unfortunately I am unable to clone my environment on the desktop so I can't install the additional packages I need to run the rest of the script. This leads me to believe this is a problem either with my computer/instance of Pro or with my active cloned environment. My version of Pro is fully up to date as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my current modules are:&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import GeoAccessor, GeoSeriesAccessor, FeatureLayer&lt;BR /&gt;from arcgis.geometry import project, SpatialReference&lt;BR /&gt;import pandas as pd&lt;BR /&gt;import geopandas as gpd&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thank you!! Would be happy with any input from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 21:11:28 GMT</pubDate>
    <dc:creator>Chris3030</dc:creator>
    <dc:date>2024-11-06T21:11:28Z</dc:date>
    <item>
      <title>Unable to drag and drop layers into notebook / filepaths are being treated like normal strings</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-drag-and-drop-layers-into-notebook/m-p/1556054#M73608</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a few weird things happen with my notebook I am running in Pro and I believe them to be related but I'm at a lost for what to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, I am unable to drag and drop layers from my contents pane into the notebook. The layer name is read simply as a string and I'm unable to convert it to a sdf (same with dragging a table and trying to read csv to a df, etc) because of this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, whenever I either drag and drop or fully type out file paths (have tried using os.path.join and double slashes when not dragging) that lead to items within a gdb, I am getting an error stating there is no such file or directory even when the file definitely exists. So there's no way I can access the items I need, either by file path or accessing via my contents pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to succeed in using the drag and drop function to grab the necessary layers and convert to spatial data frames within the same notebook when I ran it in an instance of Pro on a remote desktop, but unfortunately I am unable to clone my environment on the desktop so I can't install the additional packages I need to run the rest of the script. This leads me to believe this is a problem either with my computer/instance of Pro or with my active cloned environment. My version of Pro is fully up to date as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my current modules are:&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import GeoAccessor, GeoSeriesAccessor, FeatureLayer&lt;BR /&gt;from arcgis.geometry import project, SpatialReference&lt;BR /&gt;import pandas as pd&lt;BR /&gt;import geopandas as gpd&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thank you!! Would be happy with any input from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 21:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-drag-and-drop-layers-into-notebook/m-p/1556054#M73608</guid>
      <dc:creator>Chris3030</dc:creator>
      <dc:date>2024-11-06T21:11:28Z</dc:date>
    </item>
  </channel>
</rss>

