start new:
tmux
start new with session name:
tmux new -s myname
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
class YAML(object): | |
"""Open a YAML file as a dictionary in a context, | |
and update the file when the context is closed. | |
Example | |
------- | |
with YAML('data.yml') as data: | |
data['Trial A'] = {'foo': 1, 'bar': 2} | |
""" | |
def __init__(self, filepath): |
""" | |
Test performance of these counting methods: | |
- count_if_else: Set to 1 if not yet seen and increment otherwise | |
- count_if: Set to 0 if not yet seen, then increment regardless of containment | |
- count_exception: Attempt to increment and set to 1 if KeyError caught | |
- count_setdefault: Set default value to 0, then increment | |
- count_fromkeys: Create dict with necessary keys set to 0, then increment each | |
- count_set_and_comprehension: Create dict of items and counts using a set | |
- count_defaultdict: Increment count, automatically setting unseen values to 0 |
conda list -n collection > /tmp/conda-list-before-upgrade.txt
and include it in an Olog entry as an attachment.~/.ipython/profile_colllection
.~/.ipython/profile_collection/acceptance_tests
.ipython --profile=collection -i 01-some-test.py
. See examples from XPD or CSX.--no-deps
to keep conda from installing things you don't want.
Wes published notes for a Pandas 2.0 design document. I thought I'd commment from the perspective of dask.dataframe.
`Dask.dataframe`_ is an out-of-core / parallel/ distributed library that logically coordinates many Pandas DataFrames. It replicates a `decently large
""" | |
https://jupyter.readthedocs.io/en/latest/architecture/how_jupyter_ipython_work.html | |
http://www.tornadoweb.org/en/stable/ | |
https://jupyter-notebook.readthedocs.io/en/stable/extending/handlers.html | |
""" | |
from IPython import get_ipython | |
from IPython.core.magic import register_cell_magic | |
from tornado import ioloop | |
from functools import partial |