Skip to content
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

Fixes #1

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The easiest way to get started is to use the docker image. This will give you a

```shell

docker-compose up --build
docker-compose up -d

```

Expand Down Expand Up @@ -39,7 +39,7 @@ pip install -r requirements.txt
After which you can start neptyne with:

```shell
python server/application.py
PYTHONPATH=. python server/application.py
```

## Using Neptyne with Google Sheets
Expand Down
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
version: '3.8'

services:
app:
build:
context: .
dockerfile: Dockerfile
neptyne:
image: neptyne/neptyne:latest
ports:
- "8877:8877"
volumes:
- ./db:/db
command: ["python", "server/application.py", "--sqlite-db", "/db/sqlite.db"]
neptyne:
image: neptyne/neptyne:latest

4 changes: 3 additions & 1 deletion neptyne_kernel/neptyne_api/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Any, Callable

import geopandas
import geoplot
import numpy as np
import pyproj
from folium import GeoJson
Expand Down Expand Up @@ -86,6 +85,8 @@ def dataset(name_or_url: str) -> GeoDataFrame:
"""Returns a sample dataset given a name or url.

Named datasets are taken from geopandas.datasets, geoplot.datasets and geodatasets.
geoplot is not by default installed, so you need to set it up if you want to depend
on that.

Example:
=geo.dataset("naturalearth_lowres")
Expand All @@ -97,6 +98,7 @@ def dataset(name_or_url: str) -> GeoDataFrame:
if name_or_url in geopandas.datasets.available:
path = geopandas.datasets.get_path(name_or_url)
else:
import geoplot
try:
path = geoplot.datasets.get_path(name_or_url)
except ValueError:
Expand Down
37 changes: 36 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,29 +1,55 @@
aiocontextvars
alembic
altair
anthropic
appnope
bahttext
beautifulsoup4
black
bokeh
calweek
contextvars
croniter
db-dtypes
descartes
fastavro
feedparser # ** data.py
fire
folium # ** geo.py
gcloud-aio-storage
geopandas
geodatasets # ** geo.py
geopandas # ** geo.py
geopy
google-api-python-client
google-auth-httplib2
google-cloud-aiplatform
google-cloud-bigquery # ** data.py
google-cloud-bigquery-storage # ** data.py
google-generativeai
graphlib
gspread
gspread_asyncio
gspread_formatting
html2text
html5lib
httpx
iexfinance # ** data.py
ipykernel~=6.13.0
ipython~=8.3.0
isort
isoweek
jaconv
json-fix
jupyter_client
kaleido
kubernetes_asyncio
libcst
lxml # ** web.py
lxml_html_clean
mapboxgl
mapclassify
markdown
matplotlib
MonkeyType
mypy
nbformat
Expand Down Expand Up @@ -55,17 +81,26 @@ pytest-snapshot
pytest-timeout
python-dateutil
python-dotenv
pyxirr
pyxirr>=0.10.5
qrcode
readability-lxml
requests
roman
ruff
scikit-learn
scipy
seaborn
stack-data
statsmodels
streamlit
streamlit>=1.36.0
tabulate
tiktoken
tokenize_rt
tornado
tornado-sqlalchemy
tweepy
types-croniter
types-Markdown
types-paramiko
Expand Down
Loading
Loading