{"id":13424681,"url":"https://github.com/Invictify/Jupter-Notebook-REST-API","last_synced_at":"2025-03-15T18:35:43.686Z","repository":{"id":42017136,"uuid":"251789183","full_name":"Invictify/Jupter-Notebook-REST-API","owner":"Invictify","description":"Run your jupyter notebooks as a REST API endpoint. This isn't a jupyter server but rather just a way to run your notebooks as a REST API Endpoint.","archived":false,"fork":false,"pushed_at":"2022-12-08T03:56:51.000Z","size":26,"stargazers_count":80,"open_issues_count":11,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-26T23:55:38.839Z","etag":null,"topics":["data-science","data-science-pipelines","docker","dockerfile","fastapi","jupyter","python","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Invictify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-31T22:48:04.000Z","updated_at":"2024-09-10T16:11:50.000Z","dependencies_parsed_at":"2023-01-25T04:30:53.875Z","dependency_job_id":null,"html_url":"https://github.com/Invictify/Jupter-Notebook-REST-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invictify%2FJupter-Notebook-REST-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invictify%2FJupter-Notebook-REST-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invictify%2FJupter-Notebook-REST-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invictify%2FJupter-Notebook-REST-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Invictify","download_url":"https://codeload.github.com/Invictify/Jupter-Notebook-REST-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775913,"owners_count":20346285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","data-science-pipelines","docker","dockerfile","fastapi","jupyter","python","rest-api"],"created_at":"2024-07-31T00:00:57.761Z","updated_at":"2025-03-15T18:35:38.664Z","avatar_url":"https://github.com/Invictify.png","language":"Jupyter Notebook","funding_links":[],"categories":["Third-Party Extensions","Jupyter-Notebook工具"],"sub_categories":["Developer Tools"],"readme":"# Jupter Notebook REST API\nRun your jupyter notebooks as a REST API endpoint. This isn't a jupyter server but rather just a way to run your notebooks as a REST API Endpoint.\n\n\n## Running locally\n\n#### Clone project\n```\nmkdir rest-project\ncd rest-project\ngit clone https://github.com/Invictify/Jupter-Notebook-REST-API .\n```\n\n#### Install via Pipenv\n```\npipenv install\npipenv shell\n```\n\u003e You can also use `pip install -r requirements.txt`\n\n\n### Add your notebook(s) to \"src/notebooks\"\nThere's an example notebook already in there called `scrape.ipynb`. \n\n\n### Run locally\n\n```\npipenv run uvicorn src.server:app --reload\n```\nYou can also do: \n\n```\nchmod +x run.sh\n./run.sh\n```\n\n## Trigger a notebook.\nWith the server running, trigger notebook (relative path) like `notebooks/scrape.ipynb`\n\n```python\nimport requests\nr = requests.post(\"http://localhost:8000/trigger/notebooks/scrape.ipynb\")\nprint(r.json())\n```\n\n\n## Deployment\n\n#### Create Heroku app\nYou'll only have to do this 1 time.\n```\nheroku apps:create\n```\n\n\n### Using Git\n```\ngit init\ngit add --all\ngit commit -m \"Project commit\"\ngit push heroku master\n```\n\n### Using Docker\n\n#### Login to Heroku Container Registry\n```\nheroku container:login\n```\n\n#### Build \u0026 Push to Heroku\n```\ndocker build -t -f Dockerfile.web .\nheroku container:push web --recursive\nheroku container:release web \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInvictify%2FJupter-Notebook-REST-API","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInvictify%2FJupter-Notebook-REST-API","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInvictify%2FJupter-Notebook-REST-API/lists"}