Skip to content

Instantly share code, notes, and snippets.

View gforsyth's full-sized avatar
🐗
Cinghiale

Gil Forsyth gforsyth

🐗
Cinghiale
View GitHub Profile

Xonsh Change Log

v0.3.5

Added:

@gforsyth
gforsyth / xonsh_showoff
Last active August 25, 2016 12:44
xonsh asciicinema script
# welcome to xonsh
1 + 1
# woah!
# env variables are typed
$HOME
x = 'US'
${x + 'ER'}

Keybase proof

I hereby claim:

  • I am gforsyth on github.
  • I am gforsyth (https://keybase.io/gforsyth) on keybase.
  • I have a public key ASD5MegO4rOU1CyD0UPfND0W7q91ihpI5HhMWslgDaWgqgo

To claim this, I am signing this object:

distributed.utils - ERROR - 2400000161 exceeds max_bin_len(2147483647)
Traceback (most recent call last):
File "/home/gil/anaconda/envs/dasknumbagpu/lib/python3.5/site-packages/distributed/utils.py", line 207, in log_errors
yield
File "/home/gil/anaconda/envs/dasknumbagpu/lib/python3.5/site-packages/distributed/client.py", line 460, in _handle_report
six.reraise(*clean_exception(**msg))
File "/home/gil/anaconda/envs/dasknumbagpu/lib/python3.5/site-packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/gil/anaconda/envs/dasknumbagpu/lib/python3.5/site-packages/tornado/concurrent.py", line 237, in result
raise_exc_info(self._exc_info)
### custom keybindings
from prompt_toolkit.keys import Keys
from builtins import events
from prompt_toolkit.filters import Condition, EmacsInsertMode, ViInsertMode
@events.on_post_init
def custom_keys():
handler = __xonsh_shell__.shell.key_bindings_manager.registry.add_binding

Keybase proof

I hereby claim:

  • I am gforsyth on github.
  • I am gilforsyth (https://keybase.io/gilforsyth) on keybase.
  • I have a public key ASC_l3vid5azgD8zwY3U-zu0W6eNwgPczYf7-RJVNp77_Qo

To claim this, I am signing this object:

@gforsyth
gforsyth / conda_grid_search.xsh
Created March 10, 2020 17:54
Conda Grid Search
import json
import tqdm
def run():
a = $(conda search sphinx --json)
VERSIONS = sorted(list(set([entry["version"] for entry in json.loads(a)['sphinx']])))[::-1]
for VERSION in tqdm.tqdm(VERSIONS):
print(f"HORRIBLY CHECKING {VERSION}")
@gforsyth
gforsyth / bio.md
Last active January 28, 2021 17:36

Bio

Gil Forsyth is a Senior Manager of Software Engineering at the Capital One Center for Machine Learning. He followed the common career path of Japanese language specialist -> administrative assistant -> mechanical engineer -> computational fluid dynamicist -> data scientist -> software engineer. Gil contributes to several projects in the PyData ecosystem and is a core maintainer of xonsh and helps maintain dask. He served as the program chair for the Scientific Computing with Python (SciPy) conference from 2016 to 2020.

@gforsyth
gforsyth / rever.log
Created February 11, 2021 17:48
rever.log
{"activity":"authors","category":"activity-check","message":"Checked activity authors","rev":"432272b5828d5764359778f1c56de584713418eb","timestamp":1612459852.2720895,"version":"check"}
{"activity":"pytest","category":"activity-check","message":"Checked activity pytest","rev":"432272b5828d5764359778f1c56de584713418eb","timestamp":1612459852.2855263,"version":"check"}
{"activity":"appimage","category":"activity-check","message":"Checked activity appimage","rev":"432272b5828d5764359778f1c56de584713418eb","timestamp":1612459852.2950103,"version":"check"}
{"activity":"push_tag","category":"activity-check","message":"Checked activity push_tag","rev":"432272b5828d5764359778f1c56de584713418eb","timestamp":1612459852.6252518,"version":"check"}
{"activity":"ghrelease","category":"activity-check","message":"Checked activity ghrelease","rev":"432272b5828d5764359778f1c56de584713418eb","timestamp":1612459852.7291415,"version":"check"}
{"activity":"sphinx","category":"activity-check","message":"Checked activity sphinx","re
@gforsyth
gforsyth / gist:f3425d6bd37e6f0b68ba46dbf8121efd
Created February 19, 2021 21:55
dask dataframe column selection stacktrace
distributed.worker - WARNING - Compute Failed
Function: subgraph_callable
args: ( id name x y
timestamp
2000-01-01 00:00:00 996 George 0.828987 -0.929548
2000-01-01 00:00:01 1000 Jerry -0.110702 0.714628
2000-01-01 00:00:02 1018 Wendy 0.626610 -0.723174
2000-01-01 00:00:03 998 Norbert -0.249345 0.829807
2000-01-01 00:00:04 983 Patricia -0.614237 0.045530
... ... ... ... ...