Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smacke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
smacke
3y ago
"solved" is a very generous adjective
32.
▲
by
smacke
3y ago
Thank you! If you had tried to use it before, it probably would have broken pretty quickly. Now it will still break, but not so quickly as to not be useful, hopefully. External contributions are mostly blocked on me right now to improve bot
33.
▲
by
smacke
3y ago
For this project, Python is a hard requirement, though it's possible the approach may be applied (after significant effort -- Python took me ~3 years and counting) to other languages / runtimes as well.
34.
▲
by
smacke
3y ago
IPyflow takes a round trip from client to kernel for each execution (including reactive executions) -- this approach is necessary to get the best possible accuracy when determining dataflow in a highly dynamic language like Python, but it i
35.
▲
by
smacke
3y ago
It's very new, and the current frontend implementations for Jupyter and JupyterLab include some workarounds for fundamental protocol-level limitations that probably make adding this kind of feature as part of the core package a no-go (
36.
▲
by
smacke
3y ago
Yep that was one of the talks that motivated this work -- talked about it in my JupyterCon talk today :) https://t.ly/78rS
37.
▲
by
smacke
3y ago
For this particular project, Python is a requirement. For the general approach, the answer is more complicated. It depends on what hooks the language implementation exposes -- and even if it exposes enough to make this work in theory, track
38.
▲
by
smacke
3y ago
Thank you for all the feedback, positive and constructive! Yep docs definitely need a lot of polish :) 3. I actually started from scratch -- ipyflow's reactivity model is a bit different from these, since for Python, my experience is t
39.
▲
by
smacke
3y ago
It's running on top of vanilla CPython, but with heavy instrumentation via sys.settrace as well as ast transformations. x and y are just normal Python ints. The downside is the overhead, but it's paid mainly for top-level / m
40.
▲
by
smacke
3y ago
Yep. I think there is also a way to enable it by default in your ipython profile which I'll document at some point, so that you don't have to run `%flow mode reactive`. I'm curious though -- personally I much prefer to use th
41.
▲
by
smacke
3y ago
Hi -- author here. I just presented this work at JupyterCon 2023 so I figured it was time to advertise more broadly. There are a few rough edges but my hope is that, by making all the reactive behavior opt-in and only enabled for in-order e
42.
▲
IPyflow: Reactive Python Notebooks in Jupyter(Lab)
(github.com)
186 points
by
smacke
3y ago
|
70 comments
43.
▲
Show HN: Out of order execution in Jupyter notebooks is a solved problem
(github.com)
1 points
by
smacke
4y ago
|
1 comments
44.
▲
by
smacke
4y ago
https://github.com/ipyflow/ipyflow IPyflow is a new Python kernel for JupyterLab that understands how variables and cells depend on each other, making it easier to reason about notebook state. It adds opt-in reactivity
45.
▲
Show HN: IPyflow: a reactive, dataflow-aware IPython kernel
(github.com)
3 points
by
smacke
4y ago
|
0 comments
46.
▲
by
smacke
4y ago
Probably a reference to Yongfei Ci actually ( https://dailyillini.com/news-stories/2014/06/20/yongfei-ci-s... ) UIUC is not having a great track record wrt grad student murderers o_O
47.
▲
by
smacke
4y ago
> It would be nice if there were something that would make out-of-order problems light up, the way that code editors can highlight errors while you're editing. Check out https://github.com/nbsafety-project/nbsaf
48.
▲
by
smacke
4y ago
I think this depends. Universities seem to have the power to generate "tuition waivers" that accompany TA positions and a few external fellowships such as NSF GRFP, but if you're funded solely from one or more of your advisor
49.
▲
Show HN: Declarative Instrumentation for Python
(github.com)
3 points
by
smacke
5y ago
|
0 comments
50.
▲
Show HN: Simple and intuitive code instrumentation for Python
(github.com)
4 points
by
smacke
5y ago
|
0 comments
51.
▲
by
smacke
5y ago
If that thing were to appear on Earth, wonder how long before it becomes 6M⊕.
52.
▲
Show HN: Highlight cells that reference updated variables in Jupyter
(nbsafety.org)
1 points
by
smacke
5y ago
|
0 comments
53.
▲
Show HN: Jupyter kernel that highlights cells with references to stale data
(nbsafety.org)
3 points
by
smacke
5y ago
|
0 comments
54.
▲
Show HN: Prevent bugs from out-of-order execution in Jupyter notebooks
(nbsafety.org)
2 points
by
smacke
6y ago
|
0 comments
55.
▲
by
smacke
6y ago
For A), I'll just leave this here :) https://nbsafety.org
56.
▲
Show HN: Jupyter kernel for preventing bugs from out-of-order execution
(nbsafety.org)
1 points
by
smacke
6y ago
|
0 comments
57.
▲
Show HN: Prevent bugs from out-of-order execution in Jupyter notebooks
(github.com)
5 points
by
smacke
6y ago
|
0 comments
58.
▲
by
smacke
6y ago
I probably should have phrased it differently. I think the attitude in China is that, if somehow forced to choose between individual liberties and economic prosperity, many will choose the latter -- because they see it as enabling the forme
59.
▲
by
smacke
6y ago
They are a bit unregulated, and people warned me not to eat there too often. For example, I was told that people have died of rat poison after eating rat meat (for rats apparently captured from the street). Another issue is that the vendors
60.
▲
by
smacke
6y ago
American here. I spent a couple of months in China and have Chinese friends, so here are a few things off the top of my head (take with a grain of salt and consider talking with Chinese people for a more authentic perspective): - Reliable h
More ›