Commit 99e38d9
MacOs and Windows standalone GUIs installers (#73)
First graphical user interface (GUI) for vuegen.
Code base was adjusted to improve output file location, passing of configuration paths, logging in a continiously running application and allowing Windows compatibility of used paths.
Single commits
* 🚧 start with bundleing cli tool
* ✨ with pyvis added the basic example works using the cli
* 🚧🐛 streamlit not easy to run from within vuegen script
- sys.exectuable is vuegen script, not the original Python Interpreter
-> not easy to run `pthon -m streamlit run file.py`
- manually starting and building streamlit_run command does not connect to browser atm
* ✨ start streamlit without subprocess - runs from self-contained app
* 🐛 ensure that networking is properly enabled
- network URL assigned.
- localhost not on port 3000, but 8501 it seems
* 🎨 make Streamlit report aware of where it runs
- keep also subprocess option in code for local development
* 🐛 add st_aggrid as it is imported, not installed
import st_aggrid
but
pip install streamlit-aggrid
it is a "hidden" import as the main script is not using it (as pyvis or streamlit itself)
* 🚧 start testing of bundeling for quarto
- some form of binaries have to be passed, along addtional dependencies
* 📝 add current spec file
* ✨: First simple working example of a GUI (streamlit local)
- can start streamlit when not package as exectuable from GUI
- use grid to define layout
ToDo: Move to class-based layout
* ✨ add basic GUI command
- creates relative large executable (740 MB)
* 🎨 set default to running streamlit app directly
* 🎨 format app script further
* ⏪ undo deletion of dependencies
* ✨🎨 Try to build executable on ubuntu (+ formating)
* 🐛 cli different than on MAC, ⚡ speed up testing for now
- only run againt Python 3.11
* 🐛 install vuegen itself with gui deps
* 🎨 introduce labels for runner images
to be able to specify what is what more easily
* ✨ add other runner OS platforms with labels
* 🐛 poetry optional dependencies need to be explicit, fix name of job
- extras need to be specified as additinal dependencies
- build name of job correctly
* 🐛 colon not allowed in name...
* ⏪ undo command change
* ✨ define basic example as default, ship it with bundle
Always have something to run.
* 🎨 make process label somehow fit UI limitations
- for GitHub Actions View in the browser
* 🐛 acutally get variable value, not test instance exist
- before the existence was just tested, leading to always True (?)
* ⏪ restore main branch commands (render, not convert)
* 🚚🔥 remove cli exectuable for GUI bundle only
- 🚚 move some hints to GUI README
* 🔧 Only show streamlit for now (quarto not yet bundled)
* 🚧 add quarto execution for bundle
- execution still fails
- convert and render without execution?
- add all report types to GUI (for testing)
- do not stop app when quarto is not in PATH
* ✨ get quarto html output from bundle
- use quarto (pandoc?) to convert qmd to ipynb
- use nbconvert and a copied Python executable to execute notebook
- use quarto (pandoc?) ot convert executed ipynb to desired format
* 🐛 add bundle dependencies, RadioButton toggle
- radiobutton values are not correctly used in bundled app when built in runner
- works locally (woth local bundle, and direct execution of app)
* 🐛 fix command om cdci
* :arg: reduce console output (global logging level is DEBUG?)
* 🐛 use macos-15 explicitly
* 🎨 format and rename callback factory
* 📝 add hint to execution procedure
* 🐛 try to fix python executable path
- just copy what ever is pointing to sys.executable
- move to binaries folder
Locally this all works, but it might be that the lcoal Python exe is somehow 'valid' (signed, etc)
* 🎨 format helper script
* 🚧 move python file to main folder
* 🚧 try to use miniconda action for python exe
* 🚧 inspect conda on GitHub Actions runners
* 🚧 find the documented test environment
* 🐛 test environment not auto-activated
* 🚧 try to activate test env...
* 🚧 get environment to be activated
* 🚧 modify default shell params
* 🚧 use quarto native functionality
- require users to have a Python base installation with jupyter installed
- pip install jupyter
Then quarto manages to pick up local dependencies and run the notebook (to test)
* 🚧 try to add tinytex
* 🐛 check for dependencies
* 🐛 try to add both tools on the fly (chromnium and tinyte) needed for pdfs, docx, pptx, etc
* 🐛 close parantheses (merge error)
* 🐛 make Windows Path for bundled quarto executable
- install quarto on server (as it seems to fail in conda envs which I use locally)
* 🚧 test further options
* 🎨 add file directory selection - allow to specify a directory
- added Alberto's directory selection dialog
- added the report generator functionality as suggested by Alberto
- success needs to be printed manually. quarto errors are not propagated to our app... (exist code of subprocess run)
* 🚧 test now with onefile
- importing vuegen.generate_report increased the MAC OS file size
- or it was the windowed option?
* 🚧 test also non-windowed app
* 🐛 set default static dir only on main methods, pass parameter on other hidden methods
- will allow to set static dir on app or cli
* 🐛 allow to specify log directory
* ✨ allow to set output directory, pass on to get_report
- initialize logging directory at output directory
* 🎨 separate by row, cont. increments
* 🐛 fix #89 - check if output was actually created
* 🚧 allow to set Python Path manually
- manipulate PATH and add logs
* 🐛 set generic kernel name
- otherwise it uses local defaults on device
* 🎨 fix typo in function name
* 🎨 use isostandard for log file format
- but relace colons with hypens in hour:minutes:seconds
* ✨ this let's the interpreter look for the packages in the shipped folder
- but they need to be present as full modules (which means that `.py` and not `.so` files are present?
- will be large... but that is a side note
Use Python=3.12 where pyvis examples should work in streamlit
* 🐛 only add folder as import, not the zip file
* 🐛 fix cdci
* 🚧 build for python 3.12 with jupyter installed
- conda base 3.12 with jupyter installed needed to execute
- other than that 'only' vuegen required packges
* 🚧 add makefile to document local build on mac
- Makefile also has environment packages listed which could be added (be aware to use package folder name, not PyPI name, e.g. PIL and not pillow)
- should work with local python environment with jupyter installed
- switched to windowed build
* 🐛 example data not in normal writable file path for bundled app, put config to output folder?
- could be an option (to discuss)
- config file is where output is, not where report
- could be otherwise an option to be specified
* 🐛 svg from readme cannot be rendered
* 🐛 reset logger (relevant for GUI)
- logging.basicConfig only has an effect the first time
- executed from GUI, the logs were created but empty the second time
* 💥 Write config file based on directory to output directory of report
- read-only situation of result directories: One cannot always write to directory which contains the results if -dir option is used
- ✨ Return paths for easier reporting
- adapt example notebooks accordingly
* ✨ improve folder dialog for PythonPath, set str explicitly for Windows
- On windows the Path set by the user globally are probably seen (it seems)
- check if a path is set for directory dialog, if not start at home directory
* 🎨 set default logger_id (so not all loggers are set to debug)
* 🐛 do not overwrite _PATH
- otherwise bundled quarto is set twice if python env is selected
* 🎨 add logo to app and clean-up app.py
- for debugging do not build windowed app for now
* 🎨 do not reset directories when nothing is set, adj. app size
* ✨ cache python exectutable set previously
- only require users to setup python environment once
- 📝 start describing how to use bundled app
* 🎨 format, escape pagemark
* ✨ copy example data to vuegen_gui dir in home directory, lib for png export of altair fig
- address windows pandoc issue: "pandoc: openBinaryFile: does not exist (No such file or directory)"
- add library vl-convert-python needed for altair fig exported as static png
* 🎨 remove comment and sort
* 🐛 use selected logger, not always root to reset handlers
- handlers were not reset if not root logger was used
* ✨ document and restore all actions, use windowed build
* 🐛 add 'save' tag to ensure that altair plots can be exported
* 🎨 format docs as they were adapted
- api changes needed to be reflected in docs.
- format docs
- enforce using action
* 📝 link README of GUI
* 🚧 gh release upload for adding executables to release?
* 🎨 no time zone in log file name, use onefile for windows
- time zone names on windows are too long
- onefile on Windows should lead to only one exe
- see if option leads to okay option for .app on MAC
* 🎨 remove some comments and fix docstring
---------
Co-authored-by: enryh <[email protected]>1 parent 94c5e4c commit 99e38d9
File tree
17 files changed
+1809
-477
lines changed- .github/workflows
- docs
- example_data
- Basic_example_vuegen_demo_notebook/5_Markdown/1_All_markdown
- Earth_microbiome_vuegen_demo_notebook
- gui
- src/vuegen
17 files changed
+1809
-477
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
27 | | - | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | | - | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | | - | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
134 | 154 | | |
135 | 155 | | |
136 | 156 | | |
| |||
Lines changed: 26 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | | - | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | | - | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
122 | | - | |
123 | | - | |
| |||
Lines changed: 140 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
0 commit comments