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

fix(notebooks): correct syntax errors and chart field assignment #483

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions colabs/intro/Report_API_Quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 61,
"metadata": {},
"outputs": [],
"source": [
"!pip install wandb"
"!pip install wandb -qqq"
]
},
{
Expand Down Expand Up @@ -521,7 +521,7 @@
"source": [
"report = wr.Report(\n",
" PROJECT,\n",
" title=\"Resizing panels\"\n",
" title=\"Resizing panels\",\n",
" description=\"Look at this wide parallel coordinates plot!\",\n",
" blocks=[\n",
" wr.PanelGrid(\n",
Expand Down Expand Up @@ -563,7 +563,7 @@
"report = wr.Report(\n",
" PROJECT,\n",
" title='W&B Block Gallery',\n",
" description=\"Check out all of the blocks available in W&B\"\n",
" description=\"Check out all of the blocks available in W&B\",\n",
" blocks=[\n",
" wr.H1(text=\"Heading 1\"),\n",
" wr.P(text=\"Normal paragraph\"),\n",
Expand Down Expand Up @@ -621,7 +621,7 @@
"report = wr.Report(\n",
" project=PROJECT,\n",
" title='W&B Panel Gallery',\n",
" description=\"Check out all of the panels available in W&B\"\n",
" description=\"Check out all of the panels available in W&B\",\n",
" width='fluid',\n",
" blocks=[\n",
" wr.PanelGrid(\n",
Expand Down Expand Up @@ -703,7 +703,7 @@
" wr.CustomChart(\n",
" query={'summary': ['val_loss', 'val_acc']},\n",
" chart_name='wandb/scatter/v0',\n",
" user_fields={'x': 'val_loss', 'y': 'val_acc'}\n",
" chart_fields={'x': 'val_loss', 'y': 'val_acc'}\n",
" ),\n",
" wr.WeavePanelSummaryTable(\"my-table\"),\n",
" wr.WeavePanelArtifact('model-1', 'lineage', layout={'w': 24, 'h': 12}),\n",
Expand Down Expand Up @@ -812,7 +812,7 @@
"source": [
"report = wr.Report(PROJECT,\n",
" title=\"Report with links\",\n",
" description=\"Use `wr.Link(text, url)` to add links inside normal text, or use normal markdown syntax in a MarkdownBlock\"\n",
" description=\"Use `wr.Link(text, url)` to add links inside normal text, or use normal markdown syntax in a MarkdownBlock\",\n",
" blocks=[\n",
" wr.H1(\"This is a normal heading\"),\n",
" wr.P(\"And here is some normal text\"),\n",
Expand All @@ -835,7 +835,7 @@
"report3 = wr.Report(\n",
" PROJECT,\n",
" title=\"Combined blocks report\",\n",
" description=\"This report combines blocks from both Report 1 and Report 2\"\n",
" description=\"This report combines blocks from both Report 1 and Report 2\",\n",
" blocks=[*report1.blocks, *report2.blocks]\n",
")\n",
"report3.save()"
Expand All @@ -857,7 +857,7 @@
"report4 = wr.Report(\n",
" PROJECT,\n",
" title=\"Referenced reports via Gallery\",\n",
" description=\"This report has gallery links to Report1 and Report 2\"\n",
" description=\"This report has gallery links to Report1 and Report 2\",\n",
" blocks=[wr.Gallery(ids=[report1.id, report2.id])]\n",
")\n",
"report4.save()"
Expand Down Expand Up @@ -939,7 +939,7 @@
"report = wr.Report(\n",
" PROJECT,\n",
" title=\"Report with markdown\",\n",
" description=\"See what's possible with MarkdownBlock and MarkdownPanel\"\n",
" description=\"See what's possible with MarkdownBlock and MarkdownPanel\",\n",
" blocks=[\n",
" wr.MarkdownBlock(markdown),\n",
" wr.PanelGrid(\n",
Expand Down Expand Up @@ -1082,7 +1082,7 @@
"report = wr.Report(\n",
" project=PROJECT,\n",
" title=\"Parallel Coordinates Example (all-in-one)\",\n",
" description=\"Using the pytorch sweeps demo (same as the other one but written in one expression)\"\n",
" description=\"Using the pytorch sweeps demo (same as the other one but written in one expression)\",\n",
" blocks=[\n",
" wr.PanelGrid(\n",
" runsets=[wr.Runset(project=\"pytorch-sweeps-demo\")],\n",
Expand Down Expand Up @@ -1259,7 +1259,7 @@
"metadata": {},
"outputs": [],
"source": [
"report = wr.Report(project=PROJECT, title='Adding artifact lineage to reports', \"via WeaveBlockArtifact, WeaveBlockArtifactVersionedFile, or their panel equivalents\")"
"report = wr.Report(project=PROJECT, title='Adding artifact lineage to reports', description=\"via WeaveBlockArtifact, WeaveBlockArtifactVersionedFile, or their panel equivalents\")"
]
},
{
Expand Down Expand Up @@ -1597,6 +1597,18 @@
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
}
},
"nbformat": 4,
Expand Down
1 change: 1 addition & 0 deletions colabs/intro/boom.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tcnuqua1t6tw