Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the finding a new home sample to align with 2.4 syntax #2171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neha-sharma-geoai
Copy link
Collaborator

The notebook has been updated on my end. Still, some issues related to maps and import_data are pending which Shuang will take care of.

Checklist

Please go through each entry in the below checklist and mark an 'X' if that condition has been met. Every entry should be marked with an 'X' to be get the Pull Request approved.

  • All imports are in the first cell?
    • First block of imports are standard libraries
    • Second block are 3rd party libraries
    • Third block are all arcgis imports? Note that in some cases, for samples, it is a good idea to keep the imports next to where they are used, particularly for uncommonly used features that we want to highlight.
  • All GIS object instantiations are one of the following?
    • gis = GIS()
    • gis = GIS('home') or gis = GIS('pro')
    • gis = GIS(profile="your_online_portal")
    • gis = GIS(profile="your_enterprise_portal")
  • If this notebook requires setup or teardown, did you add the appropriate code to ./misc/setup.py and/or ./misc/teardown.py?
  • If this notebook references any portal items that need to be staged on AGOL/Python API playground, did you coordinate with a Python API team member to stage the item the correct way with the api_data_owner user?
  • If the notebook requires working with local data (such as CSV, FGDB, SHP, Raster files), upload the files as items to the Geosaurus Online Org using api_data_owner account and change the notebook to first download and unpack the files.
  • Code simplified & split out across multiple cells, useful comments?
  • Consistent voice/tense/narrative style? Thoroughly checked for typos?
  • All images used like <img src="base64str_here"> instead of <img src="https://some.url">? All map widgets contain a static image preview? (Call mapview_inst.take_screenshot() to do so)
  • All file paths are constructed in an OS-agnostic fashion with os.path.join()? (Instead of r"\foo\bar", os.path.join(os.path.sep, "foo", "bar"), etc.)
  • Is your code formatted using Jupyter Black? You can use Jupyter Black to format your code in the notebook.
  • If this notebook showcases deep learning capabilities, please go through the following checklist:
    • Are the inputs required for Export Training Data Using Deep Learning tool published on geosaurus org (api data owner account) and added in the notebook using gis.content.get function?
    • Is training data zipped and published as Image Collection? Note: Whole folder is zipped with name same as the notebook name.
    • Are the inputs required for model inferencing published on geosaurus org (api data owner account) and added in the notebook using gis.content.get function? Note: This includes providing test raster and trained model.
    • Are the inferenced results displayed using a webmap widget?
  • IF YOU WANT THIS SAMPLE TO BE DISPLAYED ON THE DEVELOPERS.ARCGIS.COM WEBSITE, ping @jyaistMap so he can add it to the list for the next deploy.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jyaistMap jyaistMap changed the title Modified Notebook for Shuang to Update Further Updates to the finding a new home sample to align with 2.4 syntax Nov 26, 2024
Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:58:55Z
----------------------------------------------------------------

Rewrite this sentence so the sentence does not contain jumbled characters:

Whether their zip code is a buyer’s market or seller’s market.

Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:58:56Z
----------------------------------------------------------------

Is there a reason why it matters whether arcpy is present? I think it would help to explain why it's important to know this.


Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:58:57Z
----------------------------------------------------------------

It might help to explain to users in a sentence or two what you are about to do. What is this csv collection you are searching for? Was it already created? Why do we need it? What is the data that is in it and why are we downloading it?


Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:58:58Z
----------------------------------------------------------------

Since you are about to extract the data from the csv collection, it's important to explain to users what that collection is.


Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:58:58Z
----------------------------------------------------------------

Might help to explain what this is doing with a sentence before you do it.


Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:58:59Z
----------------------------------------------------------------

The zoom level needs removed from the map initialization as that is no longer supported.


image

Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:59:00Z
----------------------------------------------------------------

No map appears in the local build of the website.


Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:59:01Z
----------------------------------------------------------------

The zoom level needs removed from the map initialization.


Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:59:01Z
----------------------------------------------------------------

The zoom level needs removed from the initialization and added in a cell of its own.


image

Copy link

review-notebook-app bot commented Nov 26, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-26T23:59:02Z
----------------------------------------------------------------

The zoom level needs removed from the initialization and added in a cell of its own.


image

Copy link
Collaborator

@jyaistMap jyaistMap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @neha-sharma-geoai
    • I think more explanatory text should be added that walks a user through some of what the code is actually doing. The ZipFile and pandas apply code is not easy to decipher what's happening, especially if someone were new to using data frames
  • @cariashuang0417
    • Many cells have a map zoom in the initialization, which needs removed as you know.
    • when building the site locally, no map widgets appears. so that needs addressed.

Copy link

review-notebook-app bot commented Nov 27, 2024

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-11-27T17:52:57Z
----------------------------------------------------------------

Might want to disguise your employee number from the output.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants