Skip to content

Commit

Permalink
Merge pull request #2358 from jupyter-naas/2357-add-linkedin-logo-in-…
Browse files Browse the repository at this point in the history
…templatesjson

feat: add linkedin logo in templates.json
  • Loading branch information
FlorentLvr authored Nov 6, 2023
2 parents 23cc5ac + 9df55b8 commit 1d7694f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"tags": []
},
"source": [
"# ImagineAPI.dev - Generate and Display Image\n",
"# ImagineAPI - Generate and Display Image\n",
"<a href=\"https://app.naas.ai/user-redirect/naas/downloader?url=https://raw.githubusercontent.com/jupyter-naas/awesome-notebooks/master/ImagineAPI.dev/ImagineAPI.dev_Create_Image.ipynb\" target=\"_parent\"><img src=\"https://naasai-public.s3.eu-west-3.amazonaws.com/Open_in_Naas_Lab.svg\"/></a><br><br><a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=ImagineAPI.dev+-+Generate+and+Display+Image:+Error+short+description\">Bug report</a>"
]
},
Expand Down Expand Up @@ -347,4 +347,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"tags": []
},
"source": [
"# ImagineAPI.dev - Get Image\n",
"# ImagineAPI - Get Image\n",
"<a href=\"https://app.naas.ai/user-redirect/naas/downloader?url=https://raw.githubusercontent.com/jupyter-naas/awesome-notebooks/master/ImagineAPI.dev/ImagineAPI.dev_Get_Image.ipynb\" target=\"_parent\"><img src=\"https://naasai-public.s3.eu-west-3.amazonaws.com/Open_in_Naas_Lab.svg\"/></a><br><br><a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=ImagineAPI.dev+-+Get+Image:+Error+short+description\">Bug report</a>"
]
},
Expand Down Expand Up @@ -293,4 +293,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"tags": []
},
"source": [
"# ImagineAPI.dev - List Images\n",
"# ImagineAPI - List Images\n",
"<a href=\"https://app.naas.ai/user-redirect/naas/downloader?url=https://raw.githubusercontent.com/jupyter-naas/awesome-notebooks/master/ImagineAPI.dev/ImagineAPI.dev_List_Images.ipynb\" target=\"_parent\"><img src=\"https://naasai-public.s3.eu-west-3.amazonaws.com/Open_in_Naas_Lab.svg\"/></a><br><br><a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=ImagineAPI.dev+-+List+Images:+Error+short+description\">Bug report</a>"
]
},
Expand Down Expand Up @@ -294,4 +294,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
76 changes: 14 additions & 62 deletions generate_readme.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@
"execution_count": null,
"id": "sitting-directory",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:05.875610Z",
"iopub.status.busy": "2023-11-05T16:46:05.875420Z",
"iopub.status.idle": "2023-11-05T16:46:08.325553Z",
"shell.execute_reply": "2023-11-05T16:46:08.324904Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -93,12 +87,6 @@
"execution_count": null,
"id": "guided-edgar",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.328829Z",
"iopub.status.busy": "2023-11-05T16:46:08.328438Z",
"iopub.status.idle": "2023-11-05T16:46:08.332213Z",
"shell.execute_reply": "2023-11-05T16:46:08.331643Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -139,12 +127,6 @@
"execution_count": null,
"id": "36c9011e-5f51-4779-8062-a627503100e1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.334921Z",
"iopub.status.busy": "2023-11-05T16:46:08.334555Z",
"iopub.status.idle": "2023-11-05T16:46:08.530772Z",
"shell.execute_reply": "2023-11-05T16:46:08.530186Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -210,12 +192,6 @@
"execution_count": null,
"id": "7fa60d66-a43a-4ba3-abfb-ee1779afdfc3",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.533654Z",
"iopub.status.busy": "2023-11-05T16:46:08.533183Z",
"iopub.status.idle": "2023-11-05T16:46:08.536880Z",
"shell.execute_reply": "2023-11-05T16:46:08.536353Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -250,12 +226,6 @@
"execution_count": null,
"id": "f9a4c7b2-d667-4555-98ed-31786278e947",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.539399Z",
"iopub.status.busy": "2023-11-05T16:46:08.539100Z",
"iopub.status.idle": "2023-11-05T16:46:08.552845Z",
"shell.execute_reply": "2023-11-05T16:46:08.552214Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -385,12 +355,6 @@
"execution_count": null,
"id": "9f21cfbb-2bcc-4bca-81a4-fad14b081371",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.555180Z",
"iopub.status.busy": "2023-11-05T16:46:08.554989Z",
"iopub.status.idle": "2023-11-05T16:46:08.560769Z",
"shell.execute_reply": "2023-11-05T16:46:08.560243Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -478,12 +442,6 @@
"execution_count": null,
"id": "94dcc3bd-07e2-48a3-bf81-a327e940a934",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.563100Z",
"iopub.status.busy": "2023-11-05T16:46:08.562910Z",
"iopub.status.idle": "2023-11-05T16:46:08.566494Z",
"shell.execute_reply": "2023-11-05T16:46:08.565939Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -520,12 +478,6 @@
"execution_count": null,
"id": "e45fc17e-ba5a-4317-92b3-f6de4c1a0bde",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:08.568822Z",
"iopub.status.busy": "2023-11-05T16:46:08.568634Z",
"iopub.status.idle": "2023-11-05T16:46:11.420702Z",
"shell.execute_reply": "2023-11-05T16:46:11.420060Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -572,6 +524,18 @@
" new_title_cell\n",
" )\n",
" print(\"✅ Title cell successfully updated\")\n",
" \n",
" # Image URL\n",
" image_url = \"\"\n",
" aws_url = \"https://media.licdn.com/dms/image/C560BAQER_QnUTXrPJw/company-logo_200_200/0/1670264050886?e=1707350400&v=beta&t=MgLMbMJCebJ3_IYqkifY8XNrz4cp9Z29lDvXa8a0OL0\"\n",
" linkedin_url = \"https://media.licdn.com/dms/image/C560BAQHaVYd13rRz3A/company-logo_200_200/0/1638831589865?e=1707350400&v=beta&t=43UtGFVTYryl189dtNZY69KCroFgdE4gfQEJLBsrbPI\"\n",
" notion_url = \"https://media.licdn.com/dms/image/D560BAQGSOTc29sEYDA/company-logo_200_200/0/1680539341112/notionhq_logo?e=1707350400&v=beta&t=QqIF5DJE51fQ2wQINxrk96YU-sOCQDwWXAjZGH7aZxA\"\n",
" if tool == \"AWS\":\n",
" image_url = aws_url\n",
" if tool == \"LinkedIn\":\n",
" image_url = linkedin_url\n",
" if tool == \"Notion\":\n",
" image_url = notion_url\n",
"\n",
" # Update json\n",
" new_json = {\n",
Expand All @@ -589,7 +553,7 @@
" \"open_in_chat\": open_in_chat,\n",
" \"notebook_url\": html_url,\n",
" \"imports\": imports,\n",
" \"image_url\": \"\",\n",
" \"image_url\": image_url,\n",
" }\n",
" json_templates.append(new_json)\n",
" \n",
Expand Down Expand Up @@ -623,12 +587,6 @@
"execution_count": null,
"id": "younger-consensus",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:11.423645Z",
"iopub.status.busy": "2023-11-05T16:46:11.423178Z",
"iopub.status.idle": "2023-11-05T16:46:11.428571Z",
"shell.execute_reply": "2023-11-05T16:46:11.428074Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -660,12 +618,6 @@
"execution_count": null,
"id": "2a95cba3-027c-4a57-8bfa-2ee1e9053bb7",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-05T16:46:11.430855Z",
"iopub.status.busy": "2023-11-05T16:46:11.430663Z",
"iopub.status.idle": "2023-11-05T16:46:11.461815Z",
"shell.execute_reply": "2023-11-05T16:46:11.461259Z"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -704,7 +656,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.9.6"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down

0 comments on commit 1d7694f

Please sign in to comment.