Skip to content

Commit 099b519

Browse files
authored
Merge branch 'airbnb:master' into plotly_r_fix
2 parents 55d716d + 9baafb4 commit 099b519

File tree

280 files changed

+64475
-656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+64475
-656
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
Description of changeset:
1+
Description of changeset:
2+
3+
4+
Test Plan:
25

3-
Test Plan:
46

57
Reviewers:

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ on:
66
pull_request:
77
branches:
88
- master
9-
9+
1010
workflow_dispatch:
1111

1212
jobs:
1313
Build:
1414
runs-on: '${{ matrix.os }}'
1515
strategy:
1616
matrix:
17-
os: ["ubuntu-18.04", "macos-latest"]
18-
python-version: ['3.6', '3.7', '3.8', '3.9']
17+
os: ['ubuntu-18.04', 'macos-latest']
18+
python-version: ['3.7', '3.8', '3.9']
1919
steps:
2020
- name: Checkout source
2121
uses: actions/checkout@v2
@@ -32,7 +32,7 @@ jobs:
3232
conda update --all --yes
3333
conda config --set always_yes yes --set changeps1 no
3434
conda info -a
35-
conda install -c conda-forge r-xfun=0.27 r-rlang=1.0.2 r-extrafont
35+
conda install -c conda-forge r-xfun=0.27 r-rlang=1.0.6 r-extrafont
3636
conda install -c conda-forge r-base=4.1.1 r-rmarkdown=2.13 r-ggplot2=3.3.5 r-plotly=4.10.0 pandoc=2.17.1.1
3737
conda install -c conda-forge regex
3838
pip install pycodestyle

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pip-delete-this-directory.txt
3636

3737
# Unit test / coverage reports
3838
htmlcov/
39+
manual_test/
3940
tests/test_repo/
4041
.tox/
4142
.coverage
@@ -120,3 +121,12 @@ ENV/
120121

121122
# Local development artifacts
122123
.knowledge_repo_config.yml
124+
docker/config.py
125+
126+
# Knowledge Repo Configs
127+
.configs/
128+
configs/
129+
130+
# S3 Knowledge Repo Data
131+
.tmp_kp/
132+
tmp_kp/

.vscode/launch.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,37 @@
2424
"--port",
2525
"7001",
2626
"--config",
27-
"docker/config.py"
27+
".configs/config.py"
28+
]
29+
},
30+
{
31+
"name": "Run Database KP Server Locally with config",
32+
"type": "python",
33+
"request": "launch",
34+
"program": "scripts/knowledge_repo",
35+
"console": "integratedTerminal",
36+
"args": [
37+
"--repo",
38+
"postgresql+psycopg2://knowledge_repo:password@localhost:5432/knowledge_repo:knowledge_repo",
39+
"runserver",
40+
"--port",
41+
"7001",
42+
"--config",
43+
".configs/config.py"
44+
]
45+
},
46+
{
47+
"name": "Run Cloud Storage KP Server Locally with config",
48+
"type": "python",
49+
"request": "launch",
50+
"program": "scripts/knowledge_repo",
51+
"console": "integratedTerminal",
52+
"args": [
53+
"runserver",
54+
"--port",
55+
"7001",
56+
"--config",
57+
".configs/config.py"
2858
]
2959
}
3060
]

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
{
22
"python.linting.enabled": true,
33
"python.linting.pycodestyleEnabled": true,
4+
"python.linting.pylintEnabled": true,
5+
"python.formatting.provider": "autopep8",
46
"editor.formatOnSave": true,
7+
"[python]": {
8+
"editor.formatOnSave": true
9+
},
510
"[html]": {
611
"editor.formatOnSave": false
712
},
813
"eslint.autoFixOnSave": true,
9-
"tslint.autoFixOnSave": true
14+
"tslint.autoFixOnSave": true,
15+
"editor.codeActionsOnSave": {
16+
"source.fixAll.eslint": true
17+
}
1018
}

INTHEWILD.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,26 @@ to add your organization and/or project to this document!
33

44
Organizations
55
----------
6-
- [Airbnb](https://github.com/airbnb)
7-
- [Built In](https://github.com/builtinx)
6+
- [Airbnb](https://airbnb.com)
7+
- [Bellhop](https://getbellhops.com)
8+
- [Built In](https://builtin.com)
9+
- [Cabify](https://cabify.com)
10+
- [Casper](https://casper.com)
811
- [Databricks](https://databricks.com)
9-
- [Faculty](https://faculty.ai/)
10-
- [Postmates](https://github.com/postmates)
12+
- [Elucidata](https://elucidata.io)
13+
- [Faculty](https://faculty.ai)
14+
- [Intercom](https://intercom.com)
15+
- [Keap Analytics](http://keap.com)
16+
- [Mozilla](https://wiki.mozilla.org)
17+
- [Opendoor](https://opendoor.com)
18+
- [Postmates](https://postmates.com)
19+
- [Rasa](https://rasa.com)
1120
- [Recursion Pharmaceuticals](http://recursionpharma.com)
21+
- [The NetCircle](http://thenetcircle.com)
22+
- [UNHCR WEB](http://www.unhcr.org)
23+
- [Upstart](http://www.upstart.com)
24+
- [Viasat](https://viasat.com)
25+
- [Wish](https://wish.com)
1226
- [YouGov](https://yougov.com)
1327

1428
Projects

README.md

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,45 @@
55
[![PyPI version](https://badge.fury.io/py/knowledge-repo.svg)](https://badge.fury.io/py/knowledge-repo)
66
[![Python](https://img.shields.io/pypi/pyversions/knowledge-repo.svg?maxAge=2592000)](https://pypi.python.org/pypi/knowledge-repo)
77
[![Build Status](https://github.com/airbnb/knowledge-repo/actions/workflows/main.yml/badge.svg)](https://github.com/airbnb/knowledge-repo/actions)
8-
9-
The Knowledge Repo project is focused on facilitating the sharing of
10-
knowledge between data scientists and other technical roles using data formats
11-
and tools that make sense in these professions. It provides various data stores
12-
(and utilities to manage them) for "knowledge posts", with a particular focus on
13-
notebooks (R Markdown and Jupyter / IPython Notebook) to better promote
14-
reproducible research.
15-
16-
For more information about the motivation and inspiration behind this project, we encourage you to read our [Medium Post](https://medium.com/airbnb-engineering/scaling-knowledge-at-airbnb-875d73eff091).
17-
18-
- **Documentation:** http://knowledge-repo.readthedocs.io
19-
- **Source:** https://github.com/airbnb/knowledge-repo
20-
- **Bug reports**: https://github.com/airbnb/knowledge-repo/issues
8+
[![PyPI downloads](https://static.pepy.tech/personalized-badge/knowledge-repo?period=total&units=international_system&left_color=black&right_color=brightgreen&left_text=total%20downloads)](https://pepy.tech/project/knowledge-repo)
9+
[![PyPI monthly downloads](https://static.pepy.tech/personalized-badge/knowledge-repo?period=month&units=international_system&left_color=black&right_color=brightgreen&left_text=downloads/month)](https://pepy.tech/project/knowledge-repo)
10+
11+
## About the Knowledge Repo
12+
The Knowledge Repo project aims to streamline the sharing of knowledge among data scientists and other technical roles
13+
by utilizing data formats and tools that are commonly used in these professions. Our platform offers various options for
14+
storing and managing "knowledge posts", with a focus on utilizing notebooks (such as R Markdown and Jupyter/IPython
15+
Notebook) to better promote reproducible research.
16+
17+
## Content Submission Options
18+
### 1. Github Integration:
19+
Easily submit your posts in markdown format directly through Github. Our platform will automatically
20+
detect and publish your new content in a timely manner.
21+
22+
### 2. Built-in Editor:
23+
Utilize our user-friendly editor to compose and upload your posts in various formats including Jupyter Notebook, R
24+
markdown, and Google document link. We securely store your content on our internal storage for easy access and management.
25+
Users can make updates, delete, share, and add comments to their posts after publishing.
26+
27+
## Getting Started
28+
- #### [**Installation Instruction**](http://knowledge-repo.readthedocs.io)
29+
- #### [**Hosted Live Version**](https://www.knowledge-repo.com)
30+
- #### [**Source**](https://github.com/airbnb/knowledge-repo)
31+
For more information about the motivation and inspiration behind this project, we encourage you to read our
32+
[Medium Post](https://medium.com/airbnb-engineering/scaling-knowledge-at-airbnb-875d73eff091).
33+
34+
## Contact
35+
- [**Bug reports**](https://github.com/airbnb/knowledge-repo/issues)
36+
- **Ask us questions**
37+
- [**Knowlegde-repo Slack**](https://join.slack.com/t/knowledgerepogroup/shared_invite/zt-1oxlql877-R_WUl5qGWVOt3EMs9iRKZQ)
38+
- **Email**: [email protected]
2139

2240
## Screenshots
2341

24-
![feed](https://user-images.githubusercontent.com/8813413/83345201-451ce500-a2c5-11ea-8eb9-1fbeda22b213.png)
25-
26-
![post_example](https://user-images.githubusercontent.com/8813413/83345203-48b06c00-a2c5-11ea-8edb-18e7f8f157ce.png)
27-
28-
![new_post](https://user-images.githubusercontent.com/8813413/83345202-4817d580-a2c5-11ea-9f75-964980c4c3c3.png)
29-
30-
![post_form](https://user-images.githubusercontent.com/8813413/83345204-49490280-a2c5-11ea-97e3-248192b01526.png)
31-
32-
![stats](https://user-images.githubusercontent.com/8813413/83345205-49490280-a2c5-11ea-9af2-2a01b69ae584.png)
33-
34-
35-
36-
42+
| Name | Screenshot(s) |
43+
|---------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
44+
| [Feed](https://www.knowledge-repo.com/feed) | <img src="docs/images/feed.png" width="600" /> |
45+
| [Example Post](https://www.knowledge-repo.com/post/example%2Fexample_md.kp) | <img src="https://user-images.githubusercontent.com/8813413/83345203-48b06c00-a2c5-11ea-8edb-18e7f8f157ce.png" width="600" /> |
46+
| [New Post](https://www.knowledge-repo.com/create) | <img src="https://user-images.githubusercontent.com/8813413/83345202-4817d580-a2c5-11ea-9f75-964980c4c3c3.png" width="600" /> |
47+
| [Post Form](https://www.knowledge-repo.com/edit?proxy=true) | <img src="https://user-images.githubusercontent.com/8813413/83345204-49490280-a2c5-11ea-97e3-248192b01526.png" width="600" /> |
48+
| [Stats](https://www.knowledge-repo.com/stats) | <img src="docs/images/stats1.png" width="295" /> <img src="docs/images/stats2.png" width="295" /> |
49+

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ environment:
1414
PYTHON_VERSION: "3.8.3"
1515
PYTHON_ARCH: "64"
1616
MINICONDA: C:\Miniconda3
17+
- PYTHON: "C:\\Python39-x64"
18+
PYTHON_VERSION: "3.9.1"
19+
PYTHON_ARCH: "64"
20+
MINICONDA: C:\Miniconda3
1721

1822
init:
1923
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %MINICONDA%"

docs/images/feed.png

202 KB
Loading

docs/images/stats1.png

33.9 KB
Loading

0 commit comments

Comments
 (0)