Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-chs committed Oct 18, 2023
1 parent 30c065f commit a62aa00
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions playground.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
"metadata": {},
"outputs": [],
"source": [
"get_top_convos(attr_func=lambda c: len(c.content_types()), description=\"content type count\")"
"get_top_convos(\n",
" attr_func=lambda c: len(c.content_types()), description=\"content type count\"\n",
")"
]
},
{
Expand Down Expand Up @@ -172,12 +174,11 @@
"metadata": {},
"outputs": [],
"source": [
"from datetime import datetime\n",
"from random import choice\n",
"\n",
"from utils.utils import get_colormap_names, get_font_names\n",
"\n",
"from datetime import datetime\n",
"\n",
"weeks_dict: dict[datetime, ConversationSet] = conversation_set.grouped_by_week()\n",
"\n",
"week: datetime = choice(seq=list(weeks_dict.keys()))\n",
Expand All @@ -192,13 +193,17 @@
"\n",
"\n",
"fs.save_wordcloud_from_conversation_set(\n",
" conv_set=sample_conv_set, dir_path=output_path, time_period=(week, \"week\"), font_path=font_path, colormap=colormap\n",
" conv_set=sample_conv_set,\n",
" dir_path=output_path,\n",
" time_period=(week, \"week\"),\n",
" font_path=font_path,\n",
" colormap=colormap,\n",
")\n",
"\n",
"print(\n",
" f\"font: {font_name}\\n\"\n",
" f\"colormap: {colormap}\\n\"\n",
" f\"week: {week.strftime(format='%Y week %W')}\\n\"\n",
" f\"week: {week.strftime('%Y week %W')}\\n\"\n",
" f\"saved to '{output_path.resolve()}'\\n\"\n",
")"
]
Expand Down

0 comments on commit a62aa00

Please sign in to comment.