Does anyone ever use --gui=browser?

67 views
Skip to first unread message

Edward K. Ream

unread,
Oct 24, 2025, 1:17:35 PMOct 24
to leo-editor
If so, why? :-)

I would like to retire this command-line option and the leoflexx plugin.

Edward

Viktor Ransmayr

unread,
Oct 24, 2025, 3:31:12 PMOct 24
to leo-editor
Hello Edward,

Edward K. Ream schrieb am Freitag, 24. Oktober 2025 um 19:17:35 UTC+2:
If so, why? :-)

I would like to retire this command-line option and the leoflexx plugin.

* I have not activated / used the plugin ( knowingly ;-) ...
* I have used the command-line option (CLO) in the past - but - could not get it working for me & gave up ...
* I tried the CLO now again in the latest 'devel' branch - and - it still is not working for me with Firefox in a Fedora Linux VM - See attached logs ...

So no complaints from my side if the CLO & plugin is retired !

With kind regards,

Viktor

### Log-001 ###

    [user@fedora-leo-study-vm ~]$
    [user@fedora-leo-study-vm ~]$ cd PyVE/GitHub/Leo/
    [user@fedora-leo-study-vm Leo]$
    [user@fedora-leo-study-vm Leo]$ source bin/activate
    (Leo) [user@fedora-leo-study-vm Leo]$
    (Leo) [user@fedora-leo-study-vm Leo]$ cd leo-editor/
    (Leo) [user@fedora-leo-study-vm leo-editor]$
    (Leo) [user@fedora-leo-study-vm leo-editor]$ git branch
    * devel
      felix-export-to-html-outline-viewer
      felix-improve-html-outline-viewer
    (Leo) [user@fedora-leo-study-vm leo-editor]$
    (Leo) [user@fedora-leo-study-vm leo-editor]$ git pull
    remote: Enumerating objects: 28, done.
    remote: Counting objects: 100% (11/11), done.
    remote: Compressing objects: 100% (5/5), done.
    remote: Total 28 (delta 6), reused 6 (delta 6), pack-reused 17 (from 1)
    Unpacking objects: 100% (28/28), 36.19 KiB | 805.00 KiB/s, done.
    From https://github.com/leo-editor/leo-editor
       29edc0c8d..000a7380f  devel                -> origin/devel
       160691ac5..5dc10b984  ekr-4449-colorizer   -> origin/ekr-4449-colorizer
     * [new branch]          ekr-4462-date-abbrev -> origin/ekr-4462-date-abbrev
       276ad5035..dd6bcac08  gh-pages             -> origin/gh-pages
    Updating 29edc0c8d..000a7380f
    Fast-forward
     .mypy.ini                      |   2 +-
     leo/commands/abbrevCommands.py |  48 ++++++++++++-----------------
     leo/core/leoFastRedraw.py      | 140 ------------------------------------------------------------------------------------
     leo/plugins/leoflexx.py        |  47 ++--------------------------
     4 files changed, 23 insertions(+), 214 deletions(-)
     delete mode 100644 leo/core/leoFastRedraw.py
    (Leo) [user@fedora-leo-study-vm leo-editor]$

    ###

    (Leo) [user@fedora-leo-study-vm leo-editor]$
    (Leo) [user@fedora-leo-study-vm leo-editor]$ python -m leo.core.runLeo --gui=browser &
    [1] 2004
    (Leo) [user@fedora-leo-study-vm leo-editor]$ setting leoID from os.getenv('USER'): 'user'
    [I 21:02:35 flexx.app] Asset store collected 2 new modules.
    Leo 6.8.8-devel, devel branch, build 000a7380f8
    2025-10-24 11:58:03 -0500
    Python 3.13.7, LeoGui: dummy version
    linux

    [I 21:02:36 flexx.app] Serving apps at http://localhost:49190/
    [I 21:02:36 flexx.app] Asset store collected 27 new modules.
    Uncaught exception GET /flexx/ws/LeoBrowserApp (127.0.0.1)
    HTTPServerRequest(protocol='http', host='localhost:49190', method='GET', uri='/flexx/ws/LeoBrowserApp', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/home/user/PyVE/GitHub/Leo/lib64/python3.13/site-packages/tornado/websocket.py", line 631, in _run_callback
        result = callback(*args, **kwargs)
      File "/home/user/PyVE/GitHub/Leo/lib64/python3.13/site-packages/flexx/app/_tornadoserver.py", line 543, in on_message
        self._session = manager.connect_client(self, self.app_name,
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
                                               session_id,
                                               ^^^^^^^^^^^
                                               cookies=self.cookies)
                                               ^^^^^^^^^^^^^^^^^^^^^
      File "/home/user/PyVE/GitHub/Leo/lib64/python3.13/site-packages/flexx/app/_app.py", line 611, in connect_client
        raise RuntimeError('Asked for session id %r, but could not find it' %
                           session_id)
    RuntimeError: Asked for session id 't4x6odMOxv8UQ9hraikepCuw', but could not find it
    gui.set_focus: unknown widget <StringTextWrapper: 130360110431968 body> finish_create,selectPosition,select,select,outerUpdate,set_focus

    ###

    Leo Log Window
    flexx version: 0.8.4
    Leo 6.8.8-devel, devel branch, build 000a7380f8
    2025-10-24 11:58:03 -0500
    Python 3.13.7, LeoGui: dummy version
    linux
    setting leoID from os.getenv('USER'): 'user'
          home: /home/user
    leo-editor: /home/user/PyVE/GitHub/Leo/leo-editor
          load: /home/user/PyVE/GitHub/Leo/leo-editor/leo/core
        config: /home/user/PyVE/GitHub/Leo/leo-editor/leo/config
    reading settings in /home/user/PyVE/GitHub/Leo/leo-editor/leo/config/leoSettings.leo
    reading settings in /home/user/.leo/myLeoSettings.leo
    reading settings in /home/user/PyVE/GitHub/Leo/leo-editor/leo/themes/tbp_dark_solarized.leo
    reading settings in /home/user/Documents/SL2025.leo
    read outline in 0.05 seconds
    reading settings in /home/user/.leo/myLeoSettings.leo
    read outline in 0.04 seconds

### Log-002 ###
 
   (Leo) [user@fedora-leo-study-vm leo-editor]$
    (Leo) [user@fedora-leo-study-vm leo-editor]$ python -m leo.core.runLeo --gui=browser &
    [1] 2279
    (Leo) [user@fedora-leo-study-vm leo-editor]$ setting leoID from os.getenv('USER'): 'user'
    [I 21:09:24 flexx.app] Asset store collected 2 new modules.
    Leo 6.8.8-devel, devel branch, build 000a7380f8
    2025-10-24 11:58:03 -0500
    Python 3.13.7, LeoGui: dummy version
    linux

    [I 21:09:24 flexx.app] Serving apps at http://localhost:49190/
    [I 21:09:24 flexx.app] Asset store collected 27 new modules.
    Uncaught exception GET /flexx/ws/LeoBrowserApp (127.0.0.1)
    HTTPServerRequest(protocol='http', host='localhost:49190', method='GET', uri='/flexx/ws/LeoBrowserApp', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/home/user/PyVE/GitHub/Leo/lib64/python3.13/site-packages/tornado/websocket.py", line 631, in _run_callback
        result = callback(*args, **kwargs)
      File "/home/user/PyVE/GitHub/Leo/lib64/python3.13/site-packages/flexx/app/_tornadoserver.py", line 543, in on_message
        self._session = manager.connect_client(self, self.app_name,
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
                                               session_id,
                                               ^^^^^^^^^^^
                                               cookies=self.cookies)
                                               ^^^^^^^^^^^^^^^^^^^^^
      File "/home/user/PyVE/GitHub/Leo/lib64/python3.13/site-packages/flexx/app/_app.py", line 611, in connect_client
        raise RuntimeError('Asked for session id %r, but could not find it' %
                           session_id)
    RuntimeError: Asked for session id 'fsnnPpf9e7lIPbETfkrEPnoX', but could not find it
    gui.set_focus: unknown widget <StringTextWrapper: 138120357134048 body> finish_create,selectPosition,select,select,outerUpdate,set_focus
      py.app.update_body_from_dict: MISMATCH: Log-000 ==> newHeadline

    [1]+  Done                    python -m leo.core.runLeo --gui=browser
    (Leo) [user@fedora-leo-study-vm leo-editor]$
 


Edward K. Ream

unread,
Oct 24, 2025, 4:38:56 PMOct 24
to leo-e...@googlegroups.com
On Fri, Oct 24, 2025 at 2:31 PM Viktor Ransmayr <viktor....@gmail.com> wrote:

If so, why? :-)

I would like to retire this command-line option and the leoflexx plugin.

* I have not activated / used the plugin ( knowingly ;-) ...
* I have used the command-line option (CLO) in the past - but - could not get it working for me & gave up ...
* I tried the CLO now again in the latest 'devel' branch - and - it still is not working for me with Firefox in a Fedora Linux VM - See attached logs ...

Thanks, Viktor, for your report.

Edward

Viktor Ransmayr

unread,
Oct 25, 2025, 7:54:58 AMOct 25
to leo-editor
Hello Edward,

Edward K. Ream schrieb am Freitag, 24. Oktober 2025 um 22:38:56 UTC+2:
On Fri, Oct 24, 2025 at 2:31 PM Viktor Ransmayr <viktor....@gmail.com> wrote:

... I would like to retire this command-line option and the leoflexx plugin.

* I have not activated / used the plugin ( knowingly ;-) ...
* I have used the command-line option (CLO) in the past - but - could not get it working for me & gave up ...
* I tried the CLO now again in the latest 'devel' branch - and - it still is not working for me with Firefox in a Fedora Linux VM - See attached logs ...

Thanks, Viktor, for your report.

Just for the record: The behavior I reported yesterday exists as far back as Leo 6.2. - At least for Fedora Linux ... 

With kind regards,

Viktor

lewis

unread,
Oct 27, 2025, 4:56:16 AMOct 27
to leo-editor
Hello Edward,

I no longer use the --gui=browser option.

Regards,
Lewis

Edward K. Ream

unread,
Oct 27, 2025, 11:20:11 AMOct 27
to leo-editor
On Monday, October 27, 2025 at 3:56:16 AM UTC-5 lewis wrote:
Hello Edward,

I no longer use the --gui=browser option.

Thanks, Lewis, for checking in. I'll remove this option on Friday October 31 unless somebody objects.

Edward

Thomas Passin

unread,
Oct 27, 2025, 11:41:17 AMOct 27
to leo-editor
Could we give it a deprecation warning for one release cycle?

Edward K. Ream

unread,
Oct 27, 2025, 12:17:47 PMOct 27
to leo-e...@googlegroups.com
On Mon, Oct 27, 2025 at 10:41 AM Thomas Passin <tbp1...@gmail.com> wrote:
Could we give it a deprecation warning for one release cycle?

Hmm. We could do that, but I'd rather not. The clear alternative to flexx is LeoJS.

Edward

Edward K. Ream

unread,
Oct 28, 2025, 11:04:14 AMOct 28
to leo-editor
There are two possible alternatives, but I won't do either unless the clear need arises:

1. Create a global switch (in leoGlobals.py) that would enable --gui=browser.
2. Modify plugins/leoflexx.py so that enabling the plugin would simulate --gui=browser.

Each makes Leo more complex. In contrast, PR #4467 simplifies Leo's code, dependencies, and documentation.

Edward

Thomas Passin

unread,
Oct 28, 2025, 12:13:21 PMOct 28
to leo-editor
On Tuesday, October 28, 2025 at 11:04:14 AM UTC-4 Edward K. Ream wrote:
On Monday, October 27, 2025 at 11:17:47 AM UTC-5 Edward K. Ream wrote:
On Mon, Oct 27, 2025 at 10:41 AM Thomas Passin <tbp1...@gmail.com> wrote:
Could we give it a deprecation warning for one release cycle?

Hmm. We could do that, but I'd rather not. The clear alternative to flexx is LeoJS.

There are two possible alternatives, but I won't do either unless the clear need arises:

1. Create a global switch (in leoGlobals.py) that would enable --gui=browser.
2. Modify plugins/leoflexx.py so that enabling the plugin would simulate --gui=browser.

I don't like #2 at all because one couldn't even start Leo (at least without --gui=somethingelse) without the plugin kicking in. If the plugin were buggy or one just didn't like it, editing the enabled plugins setting could become tricky.

Edward K. Ream

unread,
Oct 28, 2025, 3:52:43 PMOct 28
to leo-e...@googlegroups.com


On Tue, Oct 28, 2025 at 11:13 AM Thomas Passin <tbp1...@gmail.com> wrote:

.There are two possible alternatives, but I won't do either unless the clear need arises:

1. Create a global switch (in leoGlobals.py) that would enable --gui=browser.
2. Modify plugins/leoflexx.py so that enabling the plugin would simulate --gui=browser.

I don't like #2 at all because one couldn't even start Leo (at least without --gui=somethingelse) without the plugin kicking in. If the plugin were buggy or one just didn't like it, editing the enabled plugins setting could become tricky.

Right. These would take work. They aren't going to happen.

Edward
Reply all
Reply to author
Forward
0 new messages