This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import tree_sitter_python as tspython | |
from IPython import get_ipython | |
from IPython.core.completer import SimpleCompletion, SimpleMatcherResult | |
from tree_sitter import Language, Parser | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
export TZ=America/New_York DEBIAN_FRONTEND=noninteractive | |
apt-get update -y -qq | |
apt-get install -y build-essential software-properties-common git -qq | |
apt-get update -y -qq | |
apt-get autoremove python3 -y -qq |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [53]: import duckdb | |
In [54]: con = duckdb.connect() | |
In [55]: con.load_extension("spatial") | |
In [56]: t = con.sql( | |
...: "select geom from st_read('./ci/ibis-testing-data/geojson/zones.geojson') limit 1" | |
...: ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import adbc_driver_manager as adm | |
import adbc_driver_manager.dbapi | |
import snowflake.connector as sfc | |
def adbc(): | |
with adm.dbapi.connect( | |
driver="adbc_driver_snowflake", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ibis.expr.datatypes as dt | |
import torch | |
import torch.nn as nn | |
import tqdm | |
import pyarrow as pa | |
class LinearRegression(nn.Module): | |
def __init__(self, input_dim, output_dim): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gen_data(*, n_ids: int, n_minutes: int): | |
import numpy as np | |
import tqdm | |
start_date = np.datetime64("2013-01-01") | |
end_date = np.datetime64("2023-05-20") | |
start_time = np.timedelta64(9, "h") | |
dates = np.arange(start_date, end_date) | |
dates = dates[np.is_busday(dates)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# velox/flake.nix | |
# following https://www.breakds.org/post/nix-based-c++-workflow/ | |
{ | |
description = "A flake for building velox"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
utils.url = "github:numtide/flake-utils"; | |
utils.inputs.nixpkgs.follows = "nixpkgs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG - Loading configuration file: /home/cloud/src/ibis/mkdocs.yml | |
DEBUG - Loaded theme configuration for 'material' from '/nix/store/cwsg2cw6yk8yrybyyj0ybg99x6ldd9sl-python3-3.10.9-env/lib/python3.10/site-packages/material/mkdocs_theme.yml': {'language': 'en', 'direction': None, 'features': [], 'palette': {'primary': None, 'accent': None}, 'font': {'text': 'Roboto', 'code': 'Roboto Mono'}, 'icon': None, 'favicon': 'assets/images/favicon.png', 'include_search_page': False, 'search_index_only': True, 'static_templates': ['404.html']} | |
DEBUG - Config value 'config_file_path' = '/home/cloud/src/ibis/mkdocs.yml' | |
DEBUG - Config value 'site_name' = 'Ibis Project' | |
DEBUG - Config value 'nav' = None | |
DEBUG - Config value 'pages' = None | |
DEBUG - Config value 'site_url' = 'https://ibis-project.org/' | |
DEBUG - Config value 'site_description' = None | |
DEBUG - Config value 'site_author' = None | |
DEBUG - Config value 'theme' = Theme(name='material', dirs=['/home/cloud/src/ibis/docs/overrides' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG - Loading configuration file: /home/cloud/src/ibis/mkdocs.yml | |
DEBUG - Loaded theme configuration for 'material' from '/nix/store/cwsg2cw6yk8yrybyyj0ybg99x6ldd9sl-python3-3.10.9-env/lib/python3.10/site-packages/material/mkdocs_theme.yml': {'language': 'en', 'direction': None, 'features': [], 'palette': {'primary': None, 'accent': None}, 'font': {'text': 'Roboto', 'code': 'Roboto Mono'}, 'icon': None, 'favicon': 'assets/images/favicon.png', 'include_search_page': False, 'search_index_only': True, 'static_templates': ['404.html']} | |
DEBUG - Config value 'config_file_path' = '/home/cloud/src/ibis/mkdocs.yml' | |
DEBUG - Config value 'site_name' = 'Ibis Project' | |
DEBUG - Config value 'nav' = None | |
DEBUG - Config value 'pages' = None | |
DEBUG - Config value 'site_url' = 'https://ibis-project.org/' | |
DEBUG - Config value 'site_description' = None | |
DEBUG - Config value 'site_author' = None | |
DEBUG - Config value 'theme' = Theme(name='material', dirs=['/home/cloud/src/ibis/docs/overrides' |
NewerOlder