Sam Steingold

Results 54 comments of Sam Steingold

I confirm that I observe the reported behavior at this time (with the current chrome, editing google spreadsheet). It seems like a new button is added every time I edit...

> `(f"{x:,d}" for x in [1,10,100,1000,10000])` is insignificantly shorter than `(map("{:,d}".format, [1,10,100,1000,10000]))` and subjectively easier to read. How would you rewrite ``` pandas_series.map("{:.2%}".format) ```

Basically, how do I reset ein? kill all its connections? thank you!

I added `(ein:kernel-disconnect` kernel)` inside `ein:kernel--handle-iopub-reply` and re-defined it, and now the messages are gone. it would be nice if there were a less hacky way to deal with this.

despite `(setq ein:output-area-inlined-images t)` (https://github.com/millejoh/emacs-ipython-notebook/issues/685)

Still present with python 3.10 and ``` IPython : 8.10.0 ipykernel : 6.21.2 ipywidgets : 8.0.4 jupyter_client : 8.0.3 jupyter_core : 5.2.0 jupyter_server : 2.3.0 jupyterlab : not installed nbclient...

Also present with JupyterLab 4.0.12 & Python 3.12.1

Here is an even smaller test case: ``` l = [1,2,3] x = None if isinstance(x, int): l = l[-x:] ``` that gives ``` bad operand type for unary -:...

Possibly related: [Preserving DatetimeIndex `freq` in MultiIndex in Pandas](https://stackoverflow.com/q/77320733/850781)

type annotation like ```python def figrow(figsize, ncols) -> Tuple[Figure, List[Axes]]: ... ``` does not help