{"action":"created","comment":{"url":"https://api.github.com/repos/pyviz/EarthSim/pulls/comments/191886150","pull_request_review_id":124548271,"id":191886150,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MTg4NjE1MA==","diff_hunk":"@@ -0,0 +1,736 @@\n+{\n+ \"cells\": [\n+  {\n+   \"cell_type\": \"markdown\",\n+   \"metadata\": {},\n+   \"source\": [\n+    \"## Batched example 1\"\n+   ]\n+  },\n+  {\n+   \"cell_type\": \"markdown\",\n+   \"metadata\": {},\n+   \"source\": [\n+    \"This notebook is the first of a series that shows how [GSSHA_Workflow.ipynb](../GSSHA_Workflow.ipynb) can be parameterized at the command line. This parameterization is designed to enable parameter sweeps, automatic report generation and other new uses for notebooks.\\n\",\n+    \"\\n\",\n+    \"This first notebook aims to explain the basic mechanism used to parameterize notebooks. Although this is the least user friendly of the approaches, it also requires the fewest changes to EarthSim and the associated PyViz tools.\\n\",\n+    \"\\n\",\n+    \"The rest of the notebook is largely the same as [GSSHA_Workflow.ipynb](../GSSHA_Workflow.ipynb) although there are a few changes that are used to expose the notebook parameters at the command line. The two parameters we choose to expose are ``rain_intensity`` and ``rain_duration``.\\n\",\n+    \"\\n\",\n+    \"\\n\",\n+    \"1. <a href=\\\"#Declare_nbparams\\\">Declare the command line parameters</a>\\n\",\n+    \"2. <a href=\\\"#Display_nbparams\\\">Display the notebook parameter widgets</a>\\n\",\n+    \"3. <a href=\\\"#Apply_nbparams\\\">Apply notebook parameters and display</a>\\n\",\n+    \"\\n\",\n+    \"\\n\",\n+    \"Once the notebook is configured to use notebook parameters, they can be set at the command line as follows:\\n\",\n+    \"\\n\",\n+    \"```bash\\n\",\n+    \"cd examples/topics/batched_example/\\n\",\n+    \"PARAM_JSON_INIT='{\\\"rain_intensity\\\":42, \\\"rain_duration\\\":50}' jupyter notebook GSSHA_Workflow_Batched_Example1.ipynb\\n\",\n+    \"```\\n\",","path":"examples/topics/batched_example/GSSHA_Workflow_Batched_Example1.ipynb","position":31,"original_position":31,"commit_id":"49912a85fe1c6000e2ffb74c4c380a6e6abb7947","original_commit_id":"671111e55234fc8438e51467f571380b3d001611","user":{"login":"jlstevens","id":890576,"node_id":"MDQ6VXNlcjg5MDU3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/890576?v=4","gravatar_id":"","url":"https://api.github.com/users/jlstevens","html_url":"https://github.com/jlstevens","followers_url":"https://api.github.com/users/jlstevens/followers","following_url":"https://api.github.com/users/jlstevens/following{/other_user}","gists_url":"https://api.github.com/users/jlstevens/gists{/gist_id}","starred_url":"https://api.github.com/users/jlstevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlstevens/subscriptions","organizations_url":"https://api.github.com/users/jlstevens/orgs","repos_url":"https://api.github.com/users/jlstevens/repos","events_url":"https://api.github.com/users/jlstevens/events{/privacy}","received_events_url":"https://api.github.com/users/jlstevens/received_events","type":"User","site_admin":false},"body":"Addressed in 49912a8. It is a long command!","created_at":"2018-05-30T19:02:38Z","updated_at":"2018-05-30T19:02:38Z","html_url":"https://github.com/pyviz/EarthSim/pull/108#discussion_r191886150","pull_request_url":"https://api.github.com/repos/pyviz/EarthSim/pulls/108","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/pyviz/EarthSim/pulls/comments/191886150"},"html":{"href":"https://github.com/pyviz/EarthSim/pull/108#discussion_r191886150"},"pull_request":{"href":"https://api.github.com/repos/pyviz/EarthSim/pulls/108"}},"in_reply_to_id":191869716},"pull_request":{"url":"https://api.github.com/repos/pyviz/EarthSim/pulls/108","id":191536733,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNTM2NzMz","html_url":"https://github.com/pyviz/EarthSim/pull/108","diff_url":"https://github.com/pyviz/EarthSim/pull/108.diff","patch_url":"https://github.com/pyviz/EarthSim/pull/108.patch","issue_url":"https://api.github.com/repos/pyviz/EarthSim/issues/108","number":108,"state":"open","locked":false,"title":"Parameterized notebook examples","user":{"login":"jlstevens","id":890576,"node_id":"MDQ6VXNlcjg5MDU3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/890576?v=4","gravatar_id":"","url":"https://api.github.com/users/jlstevens","html_url":"https://github.com/jlstevens","followers_url":"https://api.github.com/users/jlstevens/followers","following_url":"https://api.github.com/users/jlstevens/following{/other_user}","gists_url":"https://api.github.com/users/jlstevens/gists{/gist_id}","starred_url":"https://api.github.com/users/jlstevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlstevens/subscriptions","organizations_url":"https://api.github.com/users/jlstevens/orgs","repos_url":"https://api.github.com/users/jlstevens/repos","events_url":"https://api.github.com/users/jlstevens/events{/privacy}","received_events_url":"https://api.github.com/users/jlstevens/received_events","type":"User","site_admin":false},"body":"This PR will add a number of examples to show how notebooks can be parameterized both with widgets for a normal notebook workflow and at the command line. \r\n\r\nThese examples are based on the ``GSSHA_Workflow``  notebook, illustrating how two parameters ``rain_intensity`` and ``rain_duration`` can be exposed. The workflow presented allows any parameters to be exposed in this way and also allows new parameters to be defined at the notebook level.\r\n\r\nNotes:\r\n\r\n* Currently requires a fix available on ``parambokeh`` master regarding ``FileSelector``.\r\n* Some sub-objects have their widgets set in a different cell as parambokeh lacks recursive editing (https://github.com/ioam/parambokeh/issues/58). This is also why the precedence of some parameters was set to -1.\r\n","created_at":"2018-05-30T18:10:28Z","updated_at":"2018-05-30T19:02:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7acc98cd5cdae979cf531cb12a7a6d8dc81d7d3b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pyviz/EarthSim/pulls/108/commits","review_comments_url":"https://api.github.com/repos/pyviz/EarthSim/pulls/108/comments","review_comment_url":"https://api.github.com/repos/pyviz/EarthSim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyviz/EarthSim/issues/108/comments","statuses_url":"https://api.github.com/repos/pyviz/EarthSim/statuses/49912a85fe1c6000e2ffb74c4c380a6e6abb7947","head":{"label":"pyviz:gssha_json_init","ref":"gssha_json_init","sha":"49912a85fe1c6000e2ffb74c4c380a6e6abb7947","user":{"login":"pyviz","id":33973552,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzOTczNTUy","avatar_url":"https://avatars1.githubusercontent.com/u/33973552?v=4","gravatar_id":"","url":"https://api.github.com/users/pyviz","html_url":"https://github.com/pyviz","followers_url":"https://api.github.com/users/pyviz/followers","following_url":"https://api.github.com/users/pyviz/following{/other_user}","gists_url":"https://api.github.com/users/pyviz/gists{/gist_id}","starred_url":"https://api.github.com/users/pyviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyviz/subscriptions","organizations_url":"https://api.github.com/users/pyviz/orgs","repos_url":"https://api.github.com/users/pyviz/repos","events_url":"https://api.github.com/users/pyviz/events{/privacy}","received_events_url":"https://api.github.com/users/pyviz/received_events","type":"Organization","site_admin":false},"repo":{"id":117260160,"node_id":"MDEwOlJlcG9zaXRvcnkxMTcyNjAxNjA=","name":"EarthSim","full_name":"pyviz/EarthSim","owner":{"login":"pyviz","id":33973552,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzOTczNTUy","avatar_url":"https://avatars1.githubusercontent.com/u/33973552?v=4","gravatar_id":"","url":"https://api.github.com/users/pyviz","html_url":"https://github.com/pyviz","followers_url":"https://api.github.com/users/pyviz/followers","following_url":"https://api.github.com/users/pyviz/following{/other_user}","gists_url":"https://api.github.com/users/pyviz/gists{/gist_id}","starred_url":"https://api.github.com/users/pyviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyviz/subscriptions","organizations_url":"https://api.github.com/users/pyviz/orgs","repos_url":"https://api.github.com/users/pyviz/repos","events_url":"https://api.github.com/users/pyviz/events{/privacy}","received_events_url":"https://api.github.com/users/pyviz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyviz/EarthSim","description":"Tools for working with and visualizing environmental simulations.","fork":false,"url":"https://api.github.com/repos/pyviz/EarthSim","forks_url":"https://api.github.com/repos/pyviz/EarthSim/forks","keys_url":"https://api.github.com/repos/pyviz/EarthSim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyviz/EarthSim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyviz/EarthSim/teams","hooks_url":"https://api.github.com/repos/pyviz/EarthSim/hooks","issue_events_url":"https://api.github.com/repos/pyviz/EarthSim/issues/events{/number}","events_url":"https://api.github.com/repos/pyviz/EarthSim/events","assignees_url":"https://api.github.com/repos/pyviz/EarthSim/assignees{/user}","branches_url":"https://api.github.com/repos/pyviz/EarthSim/branches{/branch}","tags_url":"https://api.github.com/repos/pyviz/EarthSim/tags","blobs_url":"https://api.github.com/repos/pyviz/EarthSim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyviz/EarthSim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyviz/EarthSim/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyviz/EarthSim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyviz/EarthSim/statuses/{sha}","languages_url":"https://api.github.com/repos/pyviz/EarthSim/languages","stargazers_url":"https://api.github.com/repos/pyviz/EarthSim/stargazers","contributors_url":"https://api.github.com/repos/pyviz/EarthSim/contributors","subscribers_url":"https://api.github.com/repos/pyviz/EarthSim/subscribers","subscription_url":"https://api.github.com/repos/pyviz/EarthSim/subscription","commits_url":"https://api.github.com/repos/pyviz/EarthSim/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyviz/EarthSim/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyviz/EarthSim/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyviz/EarthSim/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyviz/EarthSim/contents/{+path}","compare_url":"https://api.github.com/repos/pyviz/EarthSim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyviz/EarthSim/merges","archive_url":"https://api.github.com/repos/pyviz/EarthSim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyviz/EarthSim/downloads","issues_url":"https://api.github.com/repos/pyviz/EarthSim/issues{/number}","pulls_url":"https://api.github.com/repos/pyviz/EarthSim/pulls{/number}","milestones_url":"https://api.github.com/repos/pyviz/EarthSim/milestones{/number}","notifications_url":"https://api.github.com/repos/pyviz/EarthSim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyviz/EarthSim/labels{/name}","releases_url":"https://api.github.com/repos/pyviz/EarthSim/releases{/id}","deployments_url":"https://api.github.com/repos/pyviz/EarthSim/deployments","created_at":"2018-01-12T15:57:20Z","updated_at":"2018-05-24T18:25:45Z","pushed_at":"2018-05-30T19:02:19Z","git_url":"git://github.com/pyviz/EarthSim.git","ssh_url":"git@github.com:pyviz/EarthSim.git","clone_url":"https://github.com/pyviz/EarthSim.git","svn_url":"https://github.com/pyviz/EarthSim","homepage":"https://pyviz.github.io/EarthSim","size":3359,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":60,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":60,"watchers":6,"default_branch":"master"}},"base":{"label":"pyviz:master","ref":"master","sha":"b7b939ec684911417eb65a717e3563b81d09c7b3","user":{"login":"pyviz","id":33973552,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzOTczNTUy","avatar_url":"https://avatars1.githubusercontent.com/u/33973552?v=4","gravatar_id":"","url":"https://api.github.com/users/pyviz","html_url":"https://github.com/pyviz","followers_url":"https://api.github.com/users/pyviz/followers","following_url":"https://api.github.com/users/pyviz/following{/other_user}","gists_url":"https://api.github.com/users/pyviz/gists{/gist_id}","starred_url":"https://api.github.com/users/pyviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyviz/subscriptions","organizations_url":"https://api.github.com/users/pyviz/orgs","repos_url":"https://api.github.com/users/pyviz/repos","events_url":"https://api.github.com/users/pyviz/events{/privacy}","received_events_url":"https://api.github.com/users/pyviz/received_events","type":"Organization","site_admin":false},"repo":{"id":117260160,"node_id":"MDEwOlJlcG9zaXRvcnkxMTcyNjAxNjA=","name":"EarthSim","full_name":"pyviz/EarthSim","owner":{"login":"pyviz","id":33973552,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzOTczNTUy","avatar_url":"https://avatars1.githubusercontent.com/u/33973552?v=4","gravatar_id":"","url":"https://api.github.com/users/pyviz","html_url":"https://github.com/pyviz","followers_url":"https://api.github.com/users/pyviz/followers","following_url":"https://api.github.com/users/pyviz/following{/other_user}","gists_url":"https://api.github.com/users/pyviz/gists{/gist_id}","starred_url":"https://api.github.com/users/pyviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyviz/subscriptions","organizations_url":"https://api.github.com/users/pyviz/orgs","repos_url":"https://api.github.com/users/pyviz/repos","events_url":"https://api.github.com/users/pyviz/events{/privacy}","received_events_url":"https://api.github.com/users/pyviz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyviz/EarthSim","description":"Tools for working with and visualizing environmental simulations.","fork":false,"url":"https://api.github.com/repos/pyviz/EarthSim","forks_url":"https://api.github.com/repos/pyviz/EarthSim/forks","keys_url":"https://api.github.com/repos/pyviz/EarthSim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyviz/EarthSim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyviz/EarthSim/teams","hooks_url":"https://api.github.com/repos/pyviz/EarthSim/hooks","issue_events_url":"https://api.github.com/repos/pyviz/EarthSim/issues/events{/number}","events_url":"https://api.github.com/repos/pyviz/EarthSim/events","assignees_url":"https://api.github.com/repos/pyviz/EarthSim/assignees{/user}","branches_url":"https://api.github.com/repos/pyviz/EarthSim/branches{/branch}","tags_url":"https://api.github.com/repos/pyviz/EarthSim/tags","blobs_url":"https://api.github.com/repos/pyviz/EarthSim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyviz/EarthSim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyviz/EarthSim/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyviz/EarthSim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyviz/EarthSim/statuses/{sha}","languages_url":"https://api.github.com/repos/pyviz/EarthSim/languages","stargazers_url":"https://api.github.com/repos/pyviz/EarthSim/stargazers","contributors_url":"https://api.github.com/repos/pyviz/EarthSim/contributors","subscribers_url":"https://api.github.com/repos/pyviz/EarthSim/subscribers","subscription_url":"https://api.github.com/repos/pyviz/EarthSim/subscription","commits_url":"https://api.github.com/repos/pyviz/EarthSim/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyviz/EarthSim/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyviz/EarthSim/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyviz/EarthSim/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyviz/EarthSim/contents/{+path}","compare_url":"https://api.github.com/repos/pyviz/EarthSim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyviz/EarthSim/merges","archive_url":"https://api.github.com/repos/pyviz/EarthSim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyviz/EarthSim/downloads","issues_url":"https://api.github.com/repos/pyviz/EarthSim/issues{/number}","pulls_url":"https://api.github.com/repos/pyviz/EarthSim/pulls{/number}","milestones_url":"https://api.github.com/repos/pyviz/EarthSim/milestones{/number}","notifications_url":"https://api.github.com/repos/pyviz/EarthSim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyviz/EarthSim/labels{/name}","releases_url":"https://api.github.com/repos/pyviz/EarthSim/releases{/id}","deployments_url":"https://api.github.com/repos/pyviz/EarthSim/deployments","created_at":"2018-01-12T15:57:20Z","updated_at":"2018-05-24T18:25:45Z","pushed_at":"2018-05-30T19:02:19Z","git_url":"git://github.com/pyviz/EarthSim.git","ssh_url":"git@github.com:pyviz/EarthSim.git","clone_url":"https://github.com/pyviz/EarthSim.git","svn_url":"https://github.com/pyviz/EarthSim","homepage":"https://pyviz.github.io/EarthSim","size":3359,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":60,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":60,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pyviz/EarthSim/pulls/108"},"html":{"href":"https://github.com/pyviz/EarthSim/pull/108"},"issue":{"href":"https://api.github.com/repos/pyviz/EarthSim/issues/108"},"comments":{"href":"https://api.github.com/repos/pyviz/EarthSim/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/pyviz/EarthSim/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/pyviz/EarthSim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyviz/EarthSim/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/pyviz/EarthSim/statuses/49912a85fe1c6000e2ffb74c4c380a6e6abb7947"}},"author_association":"NONE"}}
{"actor":{"display_login":"jlstevens"}}