Kien Dang

Results 39 issues of Kien Dang

This PR enables tail call optimization for ternary conditional expression in return statement. e.g ```python @tco def tail_sum(x, acc=0): return acc if len(x) == 0 else tail_sum(x[1:], acc + x[0])...

Add event schemas + code for emitting those events for the endpoints in Jupyterhub REST APIs.

I changed a few things regarding the python native libs. - Use `sys.exec_prefix` instead of `sys.prefix`. Often they are the same but when they are not, [exec_prefix](https://docs.python.org/3/library/sys.html#sys.exec_prefix) is where the...

Attempt to update `metabrowse` to 0.2.6 Close #764 steps to run ```sh ./mill -i all "__.publishLocal" SCALA_VERSION="2.13.6" ALMOND_VERSION="0.11.2-47-434d403c-SNAPSHOT" coursier bootstrap \ sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION \ -M almond.ScalaKernel --embed-files=false \ -r central -r...

Demo here https://nbviewer.jupyter.org/github/kiendang/examples/blob/645332825d02aa244506b116867e38f7597beca6/notebooks/scalapy/scalapy_rich_display.ipynb

Close #764 Close #183 This is a POC PR for displaying type info and docstrings upon symbol inspection without metabrowse by reusing the implementation from the LSP. This depends on...

Currently if `metabrowse` is enabled, attempting to get contextual help of a symbol (shift-tab) would result in a kernel restart due to failure to start the metabrowse server. Happens both...

### Prerequisites * [x] Put an X between the brackets on this line if you have done all of the following: * Checked the online documentation: https://mimic.mit.edu/ * Checked that...

mimic-ed

original pr #233 This is for emitting server events. For client events using the eventlog endpoint see #501.

Telemetry

for client telemetry events. originally from #364, moved to a separate PR here after discussion at [jupyter-server/team-compass#4](https://github.com/jupyter-server/team-compass/issues/4#issuecomment-830405683). need to be in sync with #364 and cannot be merged before #364...

Telemetry