4 ms·
Even though I don’t use Dart myself I very much approve of this initiative. I live in my Python REPL (ipython) and I couldn’t live without my hot reloading wit
by aidos 2y ago
Even though I don’t use Dart myself I very much approve of this initiative.
I live in my Python REPL (ipython) and I couldn’t live without my hot reloading without losing state. Allows for hacking about a bit directly in the REPL. Once something starts to take shape you can push it into a file, import it into your REPL then hack about with it in a text editor.
The hot reloading is great when you have a load of state in classes and you can change code in the editor and have that immediately updated on your existing objects in the REPL.
- dbtc 2y agoAfter learning how to do this in lisp I've been missing it in python. Do you use anything alongside ipython to make this happen?
- mixmastamyk 2y agofrom importlib import reload Reload paired with inotify are the building blocks, to wire up yourself.
- aidos 2y agoConfig file here with a couple of lines to add it to ipython automatically. https://github.com/aidos/dotfiles/blob/master/_config/ipython/profile_default/ipython_config.py https://github.com/aidos/dotfiles/blob/master/_config/ipytho...
- dbtc 2y agoThanks!
- westurner 2y agojupyter-dart-kernel: https://github.com/vickumar1981/jupyter-dart-kernel https://github.com/vickumar1981/jupyter-dart-kernel : pip install jupyter-console jupyterlab -e https://github.com/vickumar1981/jupyter-dart-kernel#egg=jupyterdartkernel jupyter console --kernel jupyterdartkernel jupyter kernelspec --list IPython/extensions/autoreload.py: https://github.com/ipython/ipython/blob/main/IPython/extensions/autoreload.py https://github.com/ipython/ipython/blob/main/IPython/extensi... docs: https://ipython.readthedocs.io/en/stable/config/extensions/autoreload.html https://ipython.readthedocs.io/en/stable/config/extensions/a...