Casper da Costa-Luis

Results 737 comments of Casper da Costa-Luis

wait so this is a tigre bug. the proper fix is to get conda builds of tigre to use conda cudatoolkit, right? or alternatively the tigre conda package needs (de)activate...

#978 and #572 right :)

What's a "positional-or-keyword" arg? `app ( | --arg=)`?

I... don't think `argparse` supports this. ```py from argparse import ArgumentParser parser = ArgumentParser(prog="test") parser.add_argument('arg', default='pos', nargs='?') parser.add_argument('--arg', default='opt') parser.parse_args() # ignores --arg ``` Though the two cases will exist...

Just tested; the `shtab` aspect seems to still work(ish): ```py #!/usr/bin/env python #test from argparse import ArgumentParser import shtab parser = ArgumentParser(prog="test") key = 'arg' vals = 'foo bar baz'.split()...

> ```sh > python my-script.py --src fizz buzz > python my-script.py buzz --src fizz > ``` seems as borked as: ```py def foo(src, dst): ... foo(src="fizz", "buzz") foo("buzz", src="fizz") ```...

fyi `argparse` would expect `move --origin 3 --origin 4 1 2`

https://ipython.org/ipython-doc/2/notebook/nbconvert.html

from the link above, we could do `ipython nbconvert --config mycfg.py` which should hopefully allow us to replace `# ` with `#%%` automatically. If it doesn't we can always run...

update: `jupyter nbconvert --to python` now does `# In [*]` instead. This seems to be supportend by `spyder` (spyder-ide/spyder#1783). I've tested this with latest `jupyter` and `spyder` via `conda` (and...