Comments (5)
I'll try to run your code, but I think MacBook is much more powerful than Beaglebone Black, so maybe it's not noticeable there.
I'll update this issue later.
from nicegui.
I'm having trouble reproducing your result. The following code measures the time from starting the script until the UI is running. Independent of whether LinePlot and Plot are imported in ui.py
, the time is always around 1.4s on my MacBook. Maybe it's an issue with Matplotlib on different processor architectures. Or I misunderstood something.
import time
t = time.time()
from nicegui import ui
ui.label('Hello world!')
ui.on_startup(lambda: print(f'{time.time() - t:.3f}'))
ui.run(port=1234)
from nicegui.
With commented imports:
debian@beaglebone:~$ web_env/bin/python nicegui_test.py
/home/debian/web_env/lib/python3.7/site-packages/justpy
Module directory: /home/debian/web_env/lib/python3.7/site-packages/justpy, Application directory: /home/debian
JustPy ready to go on http://0.0.0.0:1234
14.747
With uncommented imports:
debian@beaglebone:~$ web_env/bin/python nicegui_test.py
/home/debian/web_env/lib/python3.7/site-packages/justpy
Module directory: /home/debian/web_env/lib/python3.7/site-packages/justpy, Application directory: /home/debian
JustPy ready to go on http://0.0.0.0:1234
37.066
In my research, I ran python interpreter with -X importtime
flag to generate import statements timings. And viewed it with tuna
tool. But the results are the same, nicegui is much slower on Beaglebone Black with plot imports.
from nicegui.
Ok, we checked the timing on a Jetson Nano and got 4.0 seconds each. The large difference might be caused by the little RAM you have available on the Beaglebone Black.
Nevertheless, we will shortly implement feature flags for things like Matplotlib, Highcharts, AG Grid and Three.js.
from nicegui.
Ok, it is finally released as v0.7.29
from nicegui.
Related Issues (20)
- Nginx subpath example doesn't redirect correctly when navigating to subpage with trailing slash
- ui.plotly chart randomly collapses / shrinks HOT 2
- Leaflet always uses the full width
- Troubles while periodically updating the 3D scene HOT 6
- Native mode and resizability of the window HOT 4
- Text in input and select components is not aligned to each other HOT 5
- ui.input validation will remain space after it's value was corrected HOT 3
- Select fails to change value on first try. HOT 6
- `run_method` and `getElement` return inconsistent types of elements HOT 1
- Using `copy.deepcopy` on storage causes data loss. HOT 4
- Problem for passing parameter to handler function for dynamic added `ul.html` , `ui.botton`, maybe others. HOT 2
- KeyError in `ui.log` after client disconnected HOT 4
- AG Grids inside hidden tabs don't get mounted HOT 4
- pyinstaller and cpu_bound issue HOT 6
- Leaflet: map flickers between centers after flyTo HOT 8
- Change to MS-Windows style windows is not possible? HOT 2
- 2-way bindings backward direction does not work anymore HOT 1
- Not able to clear input anymore HOT 1
- Accessibility issue with hidden connection warning HOT 3
- Autocomplete for `ui.input` not working on mobile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nicegui.