Skip to content

Commit

Permalink
fixing chart_fields= and sintax errors (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdsig authored Nov 9, 2023
1 parent 0ea7668 commit 8da58de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
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

0 comments on commit 8da58de

Please sign in to comment.