Skip to content

test #2573

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

Open
wants to merge 4,011 commits into
base: master
Choose a base branch
from
Open

test #2573

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4011 commits
Select commit Hold shift + click to select a range
cbe1d44
feat: manage api call if res == KO
FlorentLvr Aug 3, 2023
a49c6b8
fix: set init variables at None, manage params in function, manage error
FlorentLvr Aug 3, 2023
487c43d
feat(LinkedIn): Add Send like to latest profile post
FlorentLvr Aug 3, 2023
befb08f
feat: update variables desc and send to gsheet
FlorentLvr Aug 3, 2023
930e5bb
fix: bug report on template
FlorentLvr Aug 3, 2023
fee6574
Merge branch 'master' into 2101-clockify-send-time-entries-database-t…
FlorentLvr Aug 3, 2023
06dbd28
Merge pull request #2102 from jupyter-naas/2101-clockify-send-time-en…
FlorentLvr Aug 3, 2023
e9b33b1
generateReadme: Refresh
FlorentLvr Aug 3, 2023
6073d85
Merge pull request #2098 from jupyter-naas/2097-harvest-get-filtered-…
lchristensen6 Aug 4, 2023
fe397ce
generateReadme: Refresh
lchristensen6 Aug 4, 2023
d975946
Harvest - List all users
lchristensen6 Aug 4, 2023
7aca6e8
fix: remove crawl headers
FlorentLvr Aug 4, 2023
b27eab9
feat: update dates and description
FlorentLvr Aug 4, 2023
40688a3
Merge pull request #2100 from jupyter-naas/2099-advertools-check-webs…
FlorentLvr Aug 4, 2023
5f06503
generateReadme: Refresh
FlorentLvr Aug 4, 2023
03a502a
fix: hotfix variable reaction_type LinkedIn_Send_like_to_post.ipynb
FlorentLvr Aug 4, 2023
2d3b6af
generateReadme: Refresh
FlorentLvr Aug 4, 2023
1cd8c43
fix: rename fonction and dataframe
FlorentLvr Aug 4, 2023
20e8429
fix: import uuid package Naas_Update_dates_on_PR_merged.ipynb
FlorentLvr Aug 4, 2023
48d209e
generateReadme: Refresh
FlorentLvr Aug 4, 2023
c8b967f
feat: add import libraries markdown
FlorentLvr Aug 4, 2023
71a6a07
Merge pull request #2077 from jupyter-naas/owid-economic-freedom
FlorentLvr Aug 4, 2023
799dae5
generateReadme: Refresh
FlorentLvr Aug 4, 2023
174e3a4
Merge pull request #2111 from jupyter-naas/2110-harvest-get-all-users
lchristensen6 Aug 4, 2023
bfe71bd
generateReadme: Refresh
lchristensen6 Aug 4, 2023
03a78d0
feat: add import libraries markdown
FlorentLvr Aug 7, 2023
f9dc835
Merge branch 'master' into owid-greenhouse-per-capita
Dr0p42 Aug 7, 2023
2ec4d5c
Merge pull request #2088 from jupyter-naas/owid-greenhouse-per-capita
FlorentLvr Aug 7, 2023
b53a9a8
generateReadme: Refresh
FlorentLvr Aug 7, 2023
3a7d467
feat: add markedown to nb
FlorentLvr Aug 7, 2023
b402f81
ci: Make git commit not failing on refresh updated at
Dr0p42 Aug 7, 2023
5130385
generateReadme: Refresh
Dr0p42 Aug 7, 2023
f0fa083
Merge branch 'master' into owid-world-population-growth
FlorentLvr Aug 7, 2023
a507654
ci(refresh updated at): Add GitPython install
Dr0p42 Aug 7, 2023
51e7ef6
fix: get all notebooks on active branch
FlorentLvr Aug 7, 2023
a6a734d
feat: push refresh
FlorentLvr Aug 7, 2023
359e213
Merge pull request #2096 from jupyter-naas/owid-world-population-growth
FlorentLvr Aug 7, 2023
c86693c
UpdatedAt: Refresh
actions-user Aug 7, 2023
c00fe06
fix: add dates in cell 4 to notebooks
FlorentLvr Aug 7, 2023
98d7550
generateReadme: Refresh
FlorentLvr Aug 7, 2023
c54ac2e
ci: Update how the generateReadme handles push
Dr0p42 Aug 7, 2023
1916fc0
Merge branch 'master' of github.com:jupyter-naas/awesome-notebooks
Dr0p42 Aug 7, 2023
1e6a2d6
generateReadme: Refresh
actions-user Aug 7, 2023
cf183cb
Merge branch 'master' into 2106-linkedin-send-like-to-latest-profile-…
Dr0p42 Aug 7, 2023
4517129
Merge branch 'master' into owid-wealth-distribution
Dr0p42 Aug 7, 2023
b506891
Merge branch 'master' into owid-tourist-departure
Dr0p42 Aug 7, 2023
b7ae403
Merge branch 'master' into owid-HDI
Dr0p42 Aug 7, 2023
0748fdc
Merge branch 'master' into 2020-google-maps-routes-api-route-optimisa…
Dr0p42 Aug 7, 2023
9469945
Merge branch 'master' into 2021-google-maps-routes-api-distance-matrix-1
Dr0p42 Aug 7, 2023
8444d7b
Merge branch 'master' into 2038-github-send-templates-maintainer-mont…
Dr0p42 Aug 7, 2023
12a7495
Merge branch 'master' into 2029-hubspot-list-communications-from-contact
Dr0p42 Aug 7, 2023
c1ab6c8
Merge branch 'master' into 1819-yahoofinance-generate-ai-powered-chat…
Dr0p42 Aug 7, 2023
7510ab0
feat: add markdown description
FlorentLvr Aug 7, 2023
9c89a52
Merge pull request #2094 from jupyter-naas/owid-wealth-distribution
FlorentLvr Aug 7, 2023
0aa0a95
UpdatedAt: Refresh
actions-user Aug 7, 2023
ba20c8d
generateReadme: Refresh
actions-user Aug 7, 2023
2784748
fix: add tag parameters and replace pull number by none
FlorentLvr Aug 7, 2023
cf6103b
generateReadme: Refresh
actions-user Aug 7, 2023
4762e58
fix: remove naas lib Update Naas_Update_dates_on_PR_merged.ipynb
FlorentLvr Aug 7, 2023
c073027
Merge branch 'master' into 2106-linkedin-send-like-to-latest-profile-…
Dr0p42 Aug 7, 2023
cd0fc28
Merge branch 'master' into owid-tourist-departure
Dr0p42 Aug 7, 2023
1ee8316
Merge branch 'master' into owid-HDI
Dr0p42 Aug 7, 2023
81468bb
Merge branch 'master' into 2020-google-maps-routes-api-route-optimisa…
Dr0p42 Aug 7, 2023
1723408
Merge branch 'master' into 2021-google-maps-routes-api-distance-matrix-1
Dr0p42 Aug 7, 2023
54c5d3f
Merge branch 'master' into 2038-github-send-templates-maintainer-mont…
Dr0p42 Aug 7, 2023
bea581c
Merge branch 'master' into 2029-hubspot-list-communications-from-contact
Dr0p42 Aug 7, 2023
26390d2
Merge branch 'master' into 1819-yahoofinance-generate-ai-powered-chat…
Dr0p42 Aug 7, 2023
56654ed
generateReadme: Refresh
actions-user Aug 7, 2023
ceee2b0
fix: tipo
FlorentLvr Aug 7, 2023
5f5d355
generateReadme: Refresh
actions-user Aug 7, 2023
596f16d
Merge branch 'master' into 2106-linkedin-send-like-to-latest-profile-…
Dr0p42 Aug 7, 2023
e2c3a92
Merge branch 'master' into owid-tourist-departure
Dr0p42 Aug 7, 2023
2970e69
Merge branch 'master' into owid-HDI
Dr0p42 Aug 7, 2023
c717db5
Merge branch 'master' into 2020-google-maps-routes-api-route-optimisa…
Dr0p42 Aug 7, 2023
65f1bf0
Merge branch 'master' into 2021-google-maps-routes-api-distance-matrix-1
Dr0p42 Aug 7, 2023
42c85a2
Merge branch 'master' into 2038-github-send-templates-maintainer-mont…
Dr0p42 Aug 7, 2023
86513d5
Merge branch 'master' into 2029-hubspot-list-communications-from-contact
Dr0p42 Aug 7, 2023
6bf63e2
Merge branch 'master' into 1819-yahoofinance-generate-ai-powered-chat…
Dr0p42 Aug 7, 2023
d873111
feat: update md and tipo
FlorentLvr Aug 7, 2023
72b2c08
Merge pull request #2090 from jupyter-naas/owid-HDI
FlorentLvr Aug 7, 2023
4afd299
UpdatedAt: Refresh
actions-user Aug 7, 2023
db00cc0
feat: tipo md
FlorentLvr Aug 7, 2023
f8aacd4
fix: add tag
FlorentLvr Aug 7, 2023
dd9aa29
generateReadme: Refresh
actions-user Aug 7, 2023
1d46324
ci: Disable refresh updated at
Dr0p42 Aug 7, 2023
1c1d8dc
feat(HubSpot): Add Retrieve meetings
FlorentLvr Aug 7, 2023
5c66567
Merge branch 'master' into 2106-linkedin-send-like-to-latest-profile-…
Dr0p42 Aug 7, 2023
41d8b28
Merge branch 'master' into owid-tourist-departure
Dr0p42 Aug 7, 2023
1fe052d
Merge branch 'master' into 2020-google-maps-routes-api-route-optimisa…
Dr0p42 Aug 7, 2023
358d5d2
Merge branch 'master' into 2021-google-maps-routes-api-distance-matrix-1
Dr0p42 Aug 7, 2023
c96f9d1
Merge branch 'master' into 2038-github-send-templates-maintainer-mont…
Dr0p42 Aug 7, 2023
b703a2f
Merge branch 'master' into 2029-hubspot-list-communications-from-contact
Dr0p42 Aug 7, 2023
0e67eae
Merge branch 'master' into 1819-yahoofinance-generate-ai-powered-chat…
Dr0p42 Aug 7, 2023
1198be2
generateReadme: Refresh
actions-user Aug 7, 2023
4404170
Forecast - List all people
lchristensen6 Aug 7, 2023
9ceadbb
feat: update templates
FlorentLvr Aug 8, 2023
ec0d765
feat: add disclaimer
FlorentLvr Aug 8, 2023
74ac38d
feat: rename notebook, update variables and improve print()
FlorentLvr Aug 8, 2023
4118014
feat: improve output (print) and variables desc + rename notebook
FlorentLvr Aug 8, 2023
bc5dabe
fix: add dates
FlorentLvr Aug 8, 2023
5d099c4
fix: add dates
FlorentLvr Aug 8, 2023
ed2af46
Merge pull request #2092 from jupyter-naas/owid-tourist-departure
FlorentLvr Aug 8, 2023
c81338b
generateReadme: Refresh
actions-user Aug 8, 2023
1f783ac
Merge pull request #2119 from jupyter-naas/2116-forecast-list-all-people
lchristensen6 Aug 8, 2023
dbcdadd
generateReadme: Refresh
actions-user Aug 8, 2023
ef4c3dc
Merge pull request #2070 from jupyter-naas/2020-google-maps-routes-ap…
tony-georgiev Aug 8, 2023
faf0bca
generateReadme: Refresh
actions-user Aug 8, 2023
bd8958d
Merge pull request #2067 from jupyter-naas/2021-google-maps-routes-ap…
tony-georgiev Aug 8, 2023
c4f477e
generateReadme: Refresh
actions-user Aug 8, 2023
1367886
Forecast - List all assignments
lchristensen6 Aug 8, 2023
db426b0
Forecast - List all clients
lchristensen6 Aug 8, 2023
ff1cf99
Forecast - List all projects
lchristensen6 Aug 8, 2023
04f50b6
Merge pull request #2047 from jupyter-naas/2038-github-send-templates…
Benjifilly Aug 8, 2023
a5b9358
generateReadme: Refresh
actions-user Aug 8, 2023
416d007
fix: tipo
FlorentLvr Aug 9, 2023
d5fbb4f
feat: add variables mandatory and optional, fix indentation
FlorentLvr Aug 9, 2023
b6bdea4
fix: indentation get access token
FlorentLvr Aug 9, 2023
fd1d9ec
Merge pull request #2124 from jupyter-naas/2121-forecast-list-all-cli…
FlorentLvr Aug 9, 2023
054168c
generateReadme: Refresh
actions-user Aug 9, 2023
d9492b0
fix: indentation get access token + tipo
FlorentLvr Aug 9, 2023
a2a854c
Merge pull request #2123 from jupyter-naas/2120-forecast-list-all-ass…
FlorentLvr Aug 9, 2023
55467f8
generateReadme: Refresh
actions-user Aug 9, 2023
77336d4
Merge pull request #2125 from jupyter-naas/2122-forecast-list-all-pro…
FlorentLvr Aug 9, 2023
1e3871b
Update generate_readme.ipynb
FlorentLvr Aug 9, 2023
00e460a
generateReadme: Refresh
actions-user Aug 9, 2023
f7b214e
Merge pull request #2128 from jupyter-naas/fix-tipo-give-feedbacks
FlorentLvr Aug 9, 2023
a25cd91
generateReadme: Refresh
actions-user Aug 9, 2023
34f5f96
feat: store post already liked in local and send likes
FlorentLvr Aug 9, 2023
7b65ba9
feat: add scheduler
FlorentLvr Aug 9, 2023
d396aa7
fix: update variable
FlorentLvr Aug 9, 2023
9a66a83
feat: update is_file_exists function
FlorentLvr Aug 10, 2023
5740aa2
feat(LinkedIn): Add Get sentiment analysis from post comments
FlorentLvr Aug 10, 2023
8e99012
feat: analyze post comments
FlorentLvr Aug 11, 2023
983ac98
Merge pull request #2107 from jupyter-naas/2106-linkedin-send-like-to…
Dr0p42 Aug 11, 2023
9dbc757
generateReadme: Refresh
actions-user Aug 11, 2023
0910df3
feat: get sentiment analysis from post comment
FlorentLvr Aug 11, 2023
da6930b
Merge pull request #2133 from jupyter-naas/2132-linkedin-get-sentimen…
FlorentLvr Aug 11, 2023
c78f877
generateReadme: Refresh
actions-user Aug 11, 2023
d1555c8
feat: list meeting properties
FlorentLvr Aug 11, 2023
bcdf8f2
feat: get meetings associated to contact
FlorentLvr Aug 11, 2023
a67bec0
Merge pull request #2118 from jupyter-naas/2117-hubspot-retrieve-meet…
FlorentLvr Aug 11, 2023
aeda89f
generateReadme: Refresh
actions-user Aug 11, 2023
8db15eb
Update README.md
FlorentLvr Aug 16, 2023
b81d317
generateReadme: Refresh
actions-user Aug 16, 2023
f8dc72e
feat(Naas): Add Delete all schedulers
FlorentLvr Aug 16, 2023
e461e06
feat: update notebook and references
FlorentLvr Aug 16, 2023
9d36e69
Merge pull request #2141 from jupyter-naas/2140-naas-delete-all-sched…
FlorentLvr Aug 16, 2023
5499a7d
generateReadme: Refresh
actions-user Aug 16, 2023
4746107
feat(LinkedIn): Add Send interactions from post URL to HubSpot
FlorentLvr Aug 16, 2023
b0796db
feat: delete communication using object ID
FlorentLvr Aug 17, 2023
dd77ffb
fix: merge master
FlorentLvr Aug 17, 2023
9d4130e
feat: get communication associated to contact
FlorentLvr Aug 17, 2023
87aeefc
feat: add enpoint in models
FlorentLvr Aug 17, 2023
f2d4301
feat: list communication properties
FlorentLvr Aug 17, 2023
6546469
feat: create linkedin communication
FlorentLvr Aug 17, 2023
cb6e2c2
feat: add linkedin, sms, whatsapp message to hubspot communication en…
FlorentLvr Aug 17, 2023
b3ee71d
feat: retrive communication details
FlorentLvr Aug 17, 2023
c942524
Merge pull request #2030 from jupyter-naas/2029-hubspot-list-communic…
FlorentLvr Aug 17, 2023
6a3fd33
generateReadme: Refresh
actions-user Aug 17, 2023
419211d
feat: add template last dates and references in doc readme
FlorentLvr Aug 21, 2023
18896fe
feat: update template and remove useless notebooks
FlorentLvr Aug 21, 2023
8259bba
feat: list contact properties
FlorentLvr Aug 21, 2023
077a5ec
fix: get contact ID from url error + update nb
FlorentLvr Aug 21, 2023
a76c1d1
feat: update get contact details from hubspot API
FlorentLvr Aug 21, 2023
a9f6189
feat: list notes properties
FlorentLvr Aug 21, 2023
5b1390c
feat: update delete note hubspot
FlorentLvr Aug 21, 2023
e08b86a
feat: list sales emails properties
FlorentLvr Aug 21, 2023
5f77c59
feat: update list meetings properties
FlorentLvr Aug 21, 2023
ca5d229
feat: update list communication
FlorentLvr Aug 21, 2023
45db2cb
feat: get sales emails associated to contact
FlorentLvr Aug 21, 2023
c8020bb
feat: get activities from contact URL
FlorentLvr Aug 21, 2023
4a68aed
feat: add meeting title instead of content
FlorentLvr Aug 21, 2023
4a53811
Merge pull request #2152 from jupyter-naas/2145-hubspot-get-activity-…
FlorentLvr Aug 21, 2023
a1cafc2
generateReadme: Refresh
actions-user Aug 21, 2023
e14ba96
feat: update notebook format
FlorentLvr Aug 22, 2023
0799171
ci(refresh_updated_at.yaml): Uncomment some part of the ci to fix it
Dr0p42 Aug 22, 2023
6f4c7e3
generateReadme: Refresh
actions-user Aug 22, 2023
615e56b
Merge branch 'master' into 2160-linkedin-get-conversations-error-shor…
Dr0p42 Aug 22, 2023
288ef76
Merge branch 'master' into 2143-linkedin-send-interactions-from-post-…
Dr0p42 Aug 22, 2023
a262714
Merge branch 'master' into 1819-yahoofinance-generate-ai-powered-chat…
Dr0p42 Aug 22, 2023
317fd11
feat: add file path
FlorentLvr Aug 22, 2023
29fe867
fix: test OK naas linkedin api
FlorentLvr Aug 22, 2023
d8ebf52
feat(LinkedIn): Add Send like to latest profile or company post
FlorentLvr Aug 23, 2023
ef98b39
feat(HubSpot): Add Get all companies
FlorentLvr Aug 23, 2023
e2f9570
feat(Python): Add Get emojis from text
FlorentLvr Aug 23, 2023
635dade
feat: update function and description
FlorentLvr Aug 23, 2023
96a4c16
Merge pull request #2167 from jupyter-naas/2166-python-get-emojis-fro…
FlorentLvr Aug 23, 2023
aa8d533
generateReadme: Refresh
actions-user Aug 23, 2023
4cc0df9
feat: update get profile posts stats
FlorentLvr Aug 23, 2023
f7fc013
feat: update get profile posts stats
FlorentLvr Aug 23, 2023
95c6e3a
feat: update get company posts stats
FlorentLvr Aug 23, 2023
f6bef7e
feat: send like to post URL
FlorentLvr Aug 23, 2023
f9ffae9
feat: send like to latest company or profile posts
FlorentLvr Aug 23, 2023
f225ac2
feat: update send like to latest company or profile post
FlorentLvr Aug 23, 2023
24ad0ea
feat: linkedin url update
FlorentLvr Aug 23, 2023
8c5c746
Merge pull request #2163 from jupyter-naas/2162-linkedin-send-like-to…
FlorentLvr Aug 23, 2023
30891f0
generateReadme: Refresh
actions-user Aug 23, 2023
4865591
Merge pull request #2161 from jupyter-naas/2160-linkedin-get-conversa…
FlorentLvr Aug 23, 2023
f7a6749
generateReadme: Refresh
actions-user Aug 23, 2023
30c742a
feat: list company properties
FlorentLvr Aug 23, 2023
b91c863
feat: get all companies
FlorentLvr Aug 23, 2023
035e969
feat: update get all contacts
FlorentLvr Aug 23, 2023
a5a8512
Merge pull request #2165 from jupyter-naas/2164-hubspot-get-all-compa…
FlorentLvr Aug 23, 2023
8ab5d36
generateReadme: Refresh
actions-user Aug 23, 2023
edf1068
feat(Python): Add Remove HTML tags from text
FlorentLvr Aug 25, 2023
cbdb119
feat: rename nb + title
FlorentLvr Aug 25, 2023
84ab35b
Merge pull request #2176 from jupyter-naas/2175-python-remove-html-ta…
FlorentLvr Aug 25, 2023
cff52e3
generateReadme: Refresh
actions-user Aug 25, 2023
616588e
Merge pull request #2178 from jupyter-naas/master
FlorentLvr Aug 25, 2023
2b5b559
feat: get comments from posts
FlorentLvr Aug 26, 2023
844429c
feat: rework get likes and comments nb
FlorentLvr Aug 26, 2023
be1f1c8
feat: rename notebook and update variables
FlorentLvr Aug 26, 2023
bdc8ce2
feat(Python): Add Remove duplicates from a list
FlorentLvr Aug 28, 2023
d02b77d
feat(Python): Add Calculate the percentage of similarity between two …
FlorentLvr Aug 28, 2023
8f631a4
Merge pull request #2184 from jupyter-naas/2183-python-remove-duplica…
FlorentLvr Aug 28, 2023
904bf55
generateReadme: Refresh
actions-user Aug 28, 2023
ab1172e
feat: create function instead of code in cell
FlorentLvr Aug 28, 2023
9c44a44
Merge pull request #2186 from jupyter-naas/2185-python-calculate-the-…
FlorentLvr Aug 28, 2023
cb7241a
generateReadme: Refresh
actions-user Aug 28, 2023
c855082
feat: update template and create custom note
FlorentLvr Aug 29, 2023
ea7436c
fix: tipo in references
FlorentLvr Aug 29, 2023
9a8b3ad
feat: add note to contact in hubspot using api v3
FlorentLvr Aug 29, 2023
e5c219a
feat: notebooks to manage notes
FlorentLvr Aug 29, 2023
5fda290
feat: add or update contact with custom properties
FlorentLvr Aug 29, 2023
b33b6db
feat: update existing templates hubspot with ref and doc
FlorentLvr Aug 29, 2023
51df7c8
feat: score contact from hs notes
FlorentLvr Aug 29, 2023
8940255
feat: add scheduler
FlorentLvr Aug 29, 2023
959027e
Merge pull request #2144 from jupyter-naas/2143-linkedin-send-interac…
FlorentLvr Aug 29, 2023
f4de7a9
generateReadme: Refresh
actions-user Aug 29, 2023
e729919
feat: get messages from conversation
FlorentLvr Aug 31, 2023
8f10429
feat: update description
FlorentLvr Aug 31, 2023
23cb445
feat: send conversation from LinkedIn to HubSpot communication
FlorentLvr Aug 31, 2023
213b29b
Merge pull request #2195 from jupyter-naas/980-hubspot-send-linkedin-…
FlorentLvr Aug 31, 2023
7b925c2
generateReadme: Refresh
actions-user Aug 31, 2023
1d9eec1
feat: add template to chat with a specific financial indicators marke…
jravenel Aug 31, 2023
1ac2d40
fix: "hs_access_token" in LinkedIn_Send_conversation_to_HubSpot_commu…
FlorentLvr Sep 1, 2023
09c2f3b
generateReadme: Refresh
actions-user Sep 1, 2023
d062104
feat: add date and variables description
FlorentLvr Sep 1, 2023
92998f1
feat: rework yahoo template
FlorentLvr Sep 5, 2023
1bbfd61
fix: manage communications df empty
FlorentLvr Sep 6, 2023
4521fa4
fix: format nb
FlorentLvr Sep 6, 2023
a03af56
fix: manage df communication empty and fix nb format
FlorentLvr Sep 6, 2023
0522873
generateReadme: Refresh
actions-user Sep 6, 2023
945c7d2
feat: changed the prompt to always display img
jravenel Sep 6, 2023
2391f0c
feat: improve prompt to get news
FlorentLvr Sep 7, 2023
0d359f7
feat: add variables description
FlorentLvr Sep 7, 2023
e408768
feat: add symbol in tags
FlorentLvr Sep 7, 2023
a22586c
feat: plugin templates to analyze trends and predictions
FlorentLvr Sep 7, 2023
02de4fa
Merge pull request #1820 from jupyter-naas/1819-yahoofinance-generate…
FlorentLvr Sep 7, 2023
cea5158
generateReadme: Refresh
actions-user Sep 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.9

ADD requirements.txt /tmp

RUN pip3.9 install -r /tmp/requirements.txt
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/template-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Template request
about: Suggest a Notebook template idea
title: 'Tool - Action of the notebook '
labels: ''
assignees: ''

---

**Describe the problem you are facing**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

- Input
- Model
- Output

**Additional context**
Add any other context or screenshots about the feature request here.
294 changes: 294 additions & 0 deletions .github/controls/check_notebooks.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "6933ee71-8013-4aa8-9527-6a567845e10e",
"metadata": {},
"source": [
"<img width=\"10%\" alt=\"Naas\" src=\"https://landen.imgix.net/jtci2pxwjczr/assets/5ice39g4.png?w=160\"/>"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d446a1b5-92be-4fb5-b732-3674fb19ccec",
"metadata": {},
"source": [
"# CI/CD - Make sure all notebooks respects our format policy"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "21e72fae-2204-42c3-b0eb-3885fa38a589",
"metadata": {},
"source": [
"**Tags:** #naas"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a65dcb87-29c1-4092-a6dd-29e3ce143bba",
"metadata": {},
"source": [
"**Author:** [Maxime Jublou](https://www.linkedin.com/in/maximejublou/)"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "deef151b-b723-46ac-ac41-1c19d29e1fc6",
"metadata": {},
"source": [
"# Input"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "59b780f5-f3b8-416f-bb16-1119a40dac28",
"metadata": {},
"source": [
"### Import libraries"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3790eff8-2b9b-4947-bda5-5f15b0f17e29",
"metadata": {
"tags": [
"imports"
]
},
"outputs": [],
"source": [
"import json\n",
"import glob\n",
"from rich import print\n",
"import pydash\n",
"import re"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "0e4f6797-945a-4be4-9217-f9c11794acea",
"metadata": {},
"source": [
"## Model"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "3c6d9e20-03c5-4522-90ea-36b784d2c03d",
"metadata": {},
"source": [
"### Utility functions\n",
"\n",
"These functions are used by other to not repeat ourselves."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b0b65295-c14d-492a-a9a4-3a3da6da93a9",
"metadata": {},
"outputs": [],
"source": [
"def tag_exists(tagname, cells):\n",
" for cell in cells:\n",
" if tagname in pydash.get(cell, 'metadata.tags', []):\n",
" return True\n",
" return False\n",
"\n",
"def regexp_match(regex, string):\n",
" matches = re.finditer(regex, string, re.MULTILINE)\n",
" return len(list(matches)) >= 1\n",
"\n",
"def check_regexp(cells, regex, source):\n",
" cell_str = pydash.get(cells, source, '')\n",
" return regexp_match(regex, cell_str)\n",
"\n",
"def check_title_exists(cells, title):\n",
" for cell in cells:\n",
" if pydash.get(cell, 'cell_type') == 'markdown' and regexp_match(rf\"^## *{title}\", pydash.get(cell, 'source[0]')):\n",
" return True\n",
" return False"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "7ce1fed7-aac9-442b-a77e-52a062d19ce7",
"metadata": {},
"source": [
"### Check functions\n",
"\n",
"This functions are used to check if a notebook contains the rights cells with proper formatting."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "afafe8a4-572a-427f-9be6-67dca1290391",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"def check_naas_logo(cells):\n",
" logo_content = '<img width=\"10%\" alt=\"Naas\" src=\"https://landen.imgix.net/jtci2pxwjczr/assets/5ice39g4.png?w=160\"/>'\n",
" if pydash.get(cells, '[0].cell_type') == 'markdown' and pydash.get(cells, '[0].source[0]', '').startswith(logo_content):\n",
" return (True, '')\n",
" return (False, f'''\n",
" Requirements:\n",
" - Cell number: 1\n",
" - Cell type: Markdown\n",
" - Shape: {logo_content}\n",
" ''')\n",
"\n",
"def check_title_match_regexp(cells):\n",
" return (check_regexp(cells, r\"markdown\", '[1].cell_type') and check_regexp(cells, r\"^#.*-.*\", '[1].source[0]'), '''\n",
" Requirements:\n",
" - Cell number: 2\n",
" - Cell type: Markdown\n",
" - Shape: \"# something - some other thing\"\n",
" ''')\n",
"\n",
"def check_tool_tags(cells):\n",
" return (check_regexp(cells, r\"markdown\", '[2].cell_type') and check_regexp(cells, r\"^\\*\\*Tags:\\*\\* (#[1-9,a-z,A-Z]*( *|$))*\", '[2].source[0]'), '''\n",
" Requirements:\n",
" - Cell number: 3\n",
" - Cell type: Markdown\n",
" - Shape: \"**Tags:** #atLeastOneTool\"\n",
" ''')\n",
"\n",
"def check_author(cells):\n",
" return (check_regexp(cells, r\"markdown\", '[3].cell_type') and check_regexp(cells, r\"^\\*\\*Author:\\*\\* *.*\", '[3].source[0]'), '''\n",
" Requirements:\n",
" - Cell number: 4\n",
" - Cell type: Markdown\n",
" - Shape: \"**Author:** At least one author name\"\n",
" ''')\n",
"\n",
"def check_input_title_exists(cells):\n",
" return (check_title_exists(cells, 'Input'), '''\n",
" Requirements:\n",
" - Cell number: Any\n",
" - Cell type: Markdown\n",
" - Shape: \"## Input\"\n",
" ''')\n",
"\n",
"def check_model_title_exists(cells):\n",
" return (check_title_exists(cells, 'Model'), '''\n",
" Requirements:\n",
" - Cell number: Any\n",
" - Cell type: Markdown\n",
" - Shape: \"## Model\"\n",
" ''')\n",
"\n",
"def check_output_title_exists(cells):\n",
" return (check_title_exists(cells, 'Output'), '''\n",
" Requirements:\n",
" - Cell number: Any\n",
" - Cell type: Markdown\n",
" - Shape: \"## Output\"\n",
" ''')"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "40df42a5-78f7-4542-8df8-ca3e1c6fd166",
"metadata": {},
"source": [
"## Output"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f46b15cf-8e4c-4af5-bd6b-d84b2fa05535",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"got_errors = False\n",
"error_counter = 0\n",
"for file in glob.glob('../../**/*.ipynb', recursive=True):\n",
" # Do not check notebooks in .github or at the root of the project.\n",
" if '.github' in file or len(file.split('/')) == 3:\n",
" continue\n",
"\n",
" print(f\"Analyzing {file}\")\n",
" notebook = json.load(open(file))\n",
" cells = notebook.get('cells')\n",
" \n",
" filename = \"[dark_orange]\" + file.replace(\"../../\", \"\") + \"[/dark_orange]\"\n",
" outputs = [f'Errors found in: {filename}']\n",
" should_display_debug = False\n",
" \n",
" for checkf in [\n",
" check_naas_logo,\n",
" check_title_match_regexp,\n",
" check_tool_tags,\n",
" check_author,\n",
" check_input_title_exists,\n",
" check_model_title_exists,\n",
" check_output_title_exists]: \n",
" \n",
" result, msg = checkf(cells)\n",
" if result is False:\n",
" should_display_debug = True\n",
" status_msg = \"[bright_green]OK[/bright_green]\" if result is True else f\"[bright_red]KO {msg}[/bright_red]\"\n",
" outputs.append(f'{checkf.__name__} ... {status_msg}')\n",
" \n",
" if should_display_debug:\n",
" got_errors = True\n",
" error_counter += 1\n",
" for msg in outputs:\n",
" print(msg)\n",
" print(\"\\n\")\n",
"\n",
"if got_errors == True:\n",
" print(f'[bright_red]You have {error_counter} notebooks having errors!')\n",
" exit(1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "adf6ad9e-4f89-4b64-910b-b9c57f0e3918",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"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.7"
},
"toc-showtags": false
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading