def log(level: int = logging.NOTSET, package: str = "progressivis") -> None: log_level(level, package=package)
""" Starts the progressivis server and launches a python progressivis application. """ import sys import signal import logging from os import getenv import asyncio as aio import requests from progressivis import log_level from progressivis.server import start_server from progressivis.core.scheduler import Scheduler ENV = {} for filename in sys.argv[1:]: if filename == "nosetests": continue print("Loading '%s'" % filename) # pylint: disable=exec-used ENV['scheduler'] = Scheduler.default exec(compile(open(filename).read(), filename, 'exec'), ENV, ENV) if __name__ == '__main__': log_level(level=logging.NOTSET) aio.run(start_server())
def log(level=logging.ERROR, package='progressivis'): log_level(level, package=package)
def NOsetUp(self): log_level(logging.DEBUG,'progressivis.metrics.pairwise')
import tempfile as tf import os from progressivis import Scheduler, Print, log_level from progressivis.io import SimpleCSVLoader, DynVar from progressivis.stats import Histogram2D, Min, Max from progressivis.datasets import get_dataset from progressivis.vis import StatsExtender from progressivis.table import Table from progressivis.table.constant import Constant from progressivis.utils.psdict import PsDict from progressivis.stats.scaling import MinMaxScaler from progressivis_nb_widgets.nbwidgets import DataViewer from progressivis.datasets import get_dataset from progressivis.core import aio log_level(package='progressivis.table') s = Scheduler.default = Scheduler() PREFIX = '../nyc-taxi/' SUFFIX = '.bz2' URLS = [ PREFIX + 'yellow_tripdata_2015-01.csv' + SUFFIX, PREFIX + 'yellow_tripdata_2015-02.csv' + SUFFIX, PREFIX + 'yellow_tripdata_2015-03.csv' + SUFFIX, PREFIX + 'yellow_tripdata_2015-04.csv' + SUFFIX, PREFIX + 'yellow_tripdata_2015-05.csv' + SUFFIX, PREFIX + 'yellow_tripdata_2015-06.csv' + SUFFIX, ] num_cols = [