Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zieka committed Aug 7, 2024
1 parent 7a8a1f2 commit 63fcea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion moderne_visualizations_misc/find_methods_ai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
"df[\"methodPattern\"] = df[\"methodPattern\"].apply(lambda x: re.sub(r\"\\(.*\\)\", \"(..)\", x))\n",
"\n",
"\n",
"df = df.rename(columns={\"methodPattern\": \"Method pattern\", \"method\": \"Example\", \"query\": \"Query\"})\n",
"df = df.rename(\n",
" columns={\"methodPattern\": \"Method pattern\", \"method\": \"Example\", \"query\": \"Query\"}\n",
")\n",
"df = df[[\"Method pattern\", \"Example\", \"Query\"]]\n",
"\n",
"moderne_data_grid.display(df)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
" + '\"'\n",
" )\n",
"\n",
"# base64 encode yaml\n",
"base64_yaml = base64.b64encode(yaml.encode(\"utf-8\")).decode(\"utf-8\")\n",
"base64_yaml\n",
"\n",
"ipython_display(\n",
" {\"application/vnd.moderne.yamlrecipe+json\": {\"yaml\": base64_yaml}}, raw=True\n",
Expand Down

0 comments on commit 63fcea6

Please sign in to comment.