Skip to content

updates for notebook server#32

Open
khibma wants to merge 1 commit intomasterfrom
updates_2026
Open

updates for notebook server#32
khibma wants to merge 1 commit intomasterfrom
updates_2026

Conversation

@khibma
Copy link
Copy Markdown
Collaborator

@khibma khibma commented Mar 31, 2026

No description provided.

@khibma khibma requested a review from nalikaa March 31, 2026 18:23
@khibma
Copy link
Copy Markdown
Collaborator Author

khibma commented Mar 31, 2026

cc @xlt208 - I can't tag you as a reviewer, please I welcome feedback.

@xlt208
Copy link
Copy Markdown

xlt208 commented Mar 31, 2026

@khibma - I will take a look at this today. Thank you!

Copy link
Copy Markdown

@xlt208 xlt208 left a comment

Choose a reason for hiding this comment

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

Everything looks great. I have two minor suggestions on the write-up below, and a few small, picky comments on the notebook:

  1. For readability, it might be worth formatting samplePayload with each property on its own line.
  2. It would be great to place all imports in a single cell. You can use the "Organize Imports" tool in VS Code to ensure they are correctly ordered.
  3. I also noticed some trailing whitespace and minor formatting issues in the notebook, which should be easy to resolve using "Notebook: Format Notebook" in VS Code.

Thank you!


## Organization and Service webhooks to Notebook Server

Both organization and service webhooks can be directed to ArcGIS Notebook Server. The incoming webhook message will ultimately trigger a Python notebook, in turn, running Python code. This pattern enjoys the benefits of leveraging the Notebook Server infrastructure with the flexibility of developer workflows, supported by the ArcGIS for Python API.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
Both organization and service webhooks can be directed to ArcGIS Notebook Server. The incoming webhook message will ultimately trigger a Python notebook, in turn, running Python code. This pattern enjoys the benefits of leveraging the Notebook Server infrastructure with the flexibility of developer workflows, supported by the ArcGIS for Python API.
Both organization and service webhooks can be directed to ArcGIS Notebook Server. The incoming webhook message will ultimately trigger a Python notebook, in turn, running Python code. This pattern enjoys the benefits of leveraging the Notebook Server infrastructure with the flexibility of developer workflows, supported by the ArcGIS API for Python.


The Python code will be triggered when the webhook payload is received by the webhook receiver. In most instances, the incoming payload will be a necessary part of the workflow; the code will act upon the information inside the payload. This payload is automatically injected into the Python notebook as a variable, `webhookPayload`.

[!NOTE] 11.5 - 12.0 requires loading the payload as JSON: `json.loads(webhookPayload)`. 12.1 and onwards the `webhookPayload` is injected into the Notebook as a JSON object.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
[!NOTE] 11.5 - 12.0 requires loading the payload as JSON: `json.loads(webhookPayload)`. 12.1 and onwards the `webhookPayload` is injected into the Notebook as a JSON object.
> [!NOTE]
> 11.5 - 12.0 requires loading the payload as JSON: `json.loads(webhookPayload)`. 12.1 and onwards the `webhookPayload` is injected into the Notebook as a JSON object.

"outputs": [],
"source": [
"# When developing your notebook, use an example payload, one that would be similiar to a message that triggers the notebook\n",
"samplePayload = {\"serviceType\":\"FeatureServer\",\"changesUrl\":\"https://example.com/server/rest/services/Hosted/MyService/FeatureServer/extractChanges?serverGens=%5B1773230457695,1773244883393%5D\",\"name\":\"Posting\",\"id\":\"efab8ba4-6a0b-491e-8624-73a25e15ffb0\",\"folderName\":\"\",\"serviceName\":\"MyService\",\"events\":[{\"eventType\":\"FeaturesUpdated\",\"when\":1741189389713}]}\n",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"samplePayload = {\"serviceType\":\"FeatureServer\",\"changesUrl\":\"https://example.com/server/rest/services/Hosted/MyService/FeatureServer/extractChanges?serverGens=%5B1773230457695,1773244883393%5D\",\"name\":\"Posting\",\"id\":\"efab8ba4-6a0b-491e-8624-73a25e15ffb0\",\"folderName\":\"\",\"serviceName\":\"MyService\",\"events\":[{\"eventType\":\"FeaturesUpdated\",\"when\":1741189389713}]}\n",
"samplePayload = {\"serviceType\":\"FeatureServer\",\"changesUrl\":\"https://example.com/server/rest/services/Hosted/MyService/FeatureServer/extractChanges?serverGens=%5B1773230457695,1773244883393%5D\",\"name\":\"Posting\",\"id\":\"efab8ba4-6a0b-491e-8624-73a25e15ffb0\",\"folderName\":\"\",\"serviceName\":\"MyService\",\"events\":[{\"eventType\":\"FeaturesUpdated\",\"when\":1741189389713}]}\n",
"samplePayload = {\n",
" \"serviceType\": \"FeatureServer\",\n",
" \"changesUrl\": \"https://example.com/server/rest/services/Hosted/MyService/FeatureServer/extractChanges?serverGens=%5B1773230457695,1773244883393%5D\",\n",
" \"name\": \"Posting\",\n",
" \"id\": \"efab8ba4-6a0b-491e-8624-73a25e15ffb0\",\n",
" \"folderName\": \"\",\n",
" \"serviceName\": \"MyService\",\n",
" \"events\": [\n",
" {\"eventType\": \"FeaturesUpdated\", \"when\": 1741189389713}\n",
" ]\n",
"}\n",

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants