Leo can embedded Jupyter as inter. command;
will make product world merged as code world?
of course:
this kinds of enhancement, is not for core ability,
not necessarily think now ;-)
BUT:
Leo can not like IDE/Jupyter can running on the spot,
and every one time change interface,
such as leave Leo, jump into iTerm2 for running code , observe log printing,
will hurt attention, lost Mind Cache...
Hummm.. IMHO:
- theme is important for developer
- but easy switch theme is not big things
- because if someone always switch theme for show
must one designer not developer,
when i config love theme, never ever change it,
because in new theme, will odd my debug speed.
IMHO:
Leo's outline is better than TAB system,
> 4. It may be possible to use the jupyter servers/kernels in some clever way,
> without re-imagining all of Leo ;-)
>
of course, this is the biggest reason for IPython:NB upgrade as Jupyter:
SEE:
Four Ways to Extend Jupyter Notebook - Parente's Mindtrove
https://mindtrove.info/4-ways-to-extend-jupyter-notebook/
Jupyter Notebooks as RESTful Microservices - IBM Emerging Technologies Blog
http://blog.ibmjstart.net/2016/01/28/jupyter-notebooks-as-restful-microservices/
Jupyter Notebook Server API · jupyter/jupyter Wiki
https://github.com/jupyter/jupyter/wiki/Jupyter-Notebook-Server-API
Contents API — Jupyter Notebook 5.4.0 documentation
http://jupyter-notebook.readthedocs.io/en/stable/extending/contents.html
jupyterhub/jupyterhub: Multi-user server for Jupyter notebooks
https://github.com/jupyterhub/jupyterhub
...
in fact, Jupyter can usage as one friendly distributed computer platform...
that means, Leo can publish self JupyterHub server as:
http://ipynb.leoeditor.com/
so when Leo trigger from some commands;
will transform nodes as JSON sent the Jupyter backend
[server].;
echo the running result as JSON;
rebuild GUI as new contents.
of course:
JupyterHub can running local host also.
with Leo Server Extensions, echo Leo edit action.
BUT:
Leo can not like IDE/Jupyter can running on the spot,
and every one time change interface,
such as leave Leo, jump into iTerm2 for running code , observe log printing,
will hurt attention, lost Mind Cache...
+1. This is why I tend to use Pyzo when prototyping new python code.
I love the "lost Mind Cache" phrase.
+1. This is why I tend to use Pyzo when prototyping new python code.Pyzo has an integrated console window. Is this what you are talking about?
Is the Stupendous Aha not convenient enough?
Pyzo's integrated console window is very handy.
Pyzo has the ancestral idea of Leo's Execute Node (Ctrl-B), but more primitive as it only executes the currently selected lines (via Alt-Enter).
## cell 1
print('hi')
print('cell1')
## cell 2
print('cell2')
Confession: I don't do unit tests, which is horrible and likely grounds for kicking me off the team! ;-)
I get frustrated by commonly spending twice as much time writing and debugging the tests themselves as the code they are supposed to validate.
Back to Pyzo: I also really like the interactive exploration of live variable values in the "Workshop" panel.
On Thu, 1 Mar 2018 05:36:53 -0600 "Edward K. Ream" <edre...@gmail.com> wrote:
> Pyzo cells <http://www.pyzo.org/pyzo_intro.html> are everything > between two commands starting with ## or #%%.
The vs-eval-block command from the valuespace plugin gives Leo a cell like behavior. It puts "# >>>" after the current code and executes it, separating the results from further input with "# <<<".
from collections import OrderedDict test = OrderedDict({'a': 1, 'b': 2, 'c': 3}) # >>> OrderedDict([('a', 1), ('c', 3), ('b', 2)]) # <<< test = OrderedDict((('a', 1), ('b', 2), ('c', 3))) # >>> OrderedDict([('a', 1), ('b', 2), ('c', 3)]) # <<< test.update({'note': "variables are persistent"}) # >>> # <<< # but update evals to None, so name the variable you want to see test # >>> OrderedDict([('a', 1), ('b', 2), ('c', 3), ('note', 'variables are persistent')]) # <<<
if you go back to an earlier block and execute it, subsequent blocks are marked "# >>> *" to indicate they're out of date. Binding vs-eval-block to a key let's you step rapidly through the blocks, as each execution selects the next block.
Tangential: I think many years ago I wrote some code to pull plugin docstrings into Leo's docs., pretty sure that's not done currently, but seems worthwhile.
Off-topic: docutils.sourceforge.net refused to connect.
Cheers -Terry
> Pyzo cells <http://www.pyzo.org/pyzo_intro.html> are everything
> between two commands starting with ## or #%%.
The `vs-eval-block` command from the valuespace plugin gives Leo a cell
like behavior.
Tangential: I think many years ago I wrote some code to pull plugin
docstrings into Leo's docs., pretty sure that's not done currently, but
seems worthwhile.