To download an online course's materials, from any Jupyter notebook, execute:
!tar chvfz course.tar.gz ../*
To download an online course's materials, from any Jupyter notebook, execute:
!tar chvfz course.tar.gz ../*
import contextlib | |
from functools import partial | |
from sklearn.pipeline import Pipeline | |
@contextlib.contextmanager | |
def intermediate_transforms(pipe: Pipeline, keys: list=[], bypass_list: list=[]): | |
"""Allows for the retrieval of all or parts of the transformations in a | |
sklearn Pipeline, as well as the ability to dynamically bypass parts of | |
the pipeline. |
Taking a new tack, we are going to use UV. This installs a new, global Python environment. It can easily be tweaked for other project and local environments.
Install uv via
curl -LsSf https://astral.sh/uv/install.sh | sh
Make a bash file, install_python.sh
:
#!/bin/bash
import logging | |
from collections.abc import Iterable | |
def is_container(obj): | |
return isinstance(obj, Iterable) and not isinstance(obj, (str, bytes, bytearray)) | |
# https://stackoverflow.com/a/54000999/394430 | |
def walk_collection(obj, callback=None, _path: list=[], **kwargs): | |
"""Walk an arbitrarily nested structure of lists and/or dicts such as would be made when | |
reading JSON as an object. Walking is performed in a depth-first search manner. |
To get use MongoDB from Tableau, start a mongosqld instance...
mongosqld --mongo-uri "mongodb://<host>:<port>/?connect=direct"
Then from Tableau, select Servers->MongoDB BI Connector with 127.0.0.1 and 3307 as connection details.