Comments (3)
Does that solution work for you?
Yes -- thanks for the diagnosis.
from nicegui.
Thanks for converting this into an issue.
It looks like using ui.run(reload=False)
fixes the issue, which is actually fine for my purposes.
from nicegui.
@pwt I think I found the reason for 100% CPU usage: You're copying the nicegui-test.py into the root directory /
, which will also be the working directory when running the NiceGUI app. But this causes the reload watchdog to watch the whole disk, which is pretty costly. By moving the working directory somewhere else, the CPU drops to around 0.5% on my machine:
FROM python:3.12-slim
RUN pip install --root-user-action=ignore --disable-pip-version-check --no-cache-dir nicegui
WORKDIR /root
COPY nicegui-test.py nicegui-test.py
CMD python nicegui-test.py
Does that solution work for you?
from nicegui.
Related Issues (20)
- custom vue.js component not updated after modification HOT 3
- non-existing on_pointer parameter in InteractiveImage HOT 1
- `ui.chip` textcolor stays black on dark background HOT 2
- Bump plotly.js to 2.32.0 version supporting zindex HOT 4
- Lifespan state is not passed when a FastAPI app mount a Nicegui app HOT 3
- plotly is missing from docker image HOT 2
- How to get the value of a cell slot within a table?
- how can nicegui upload all files and subdirectory in an directory?
- auto-reload make pyinstaller build failed HOT 2
- `ui.codemirror` does not work via NiceGUI On Air
- Audio with hashtags in filenames are not loaded HOT 1
- Native mode raises 'webview' has not attribute 'settings' HOT 1
- Pytest: recursive dependency in fixtures HOT 2
- `ui.number`: change event argument differs from `value` property HOT 1
- Confusing desync with blocking calls HOT 15
- while running smoothly after few minutes this issue occurred..please help HOT 1
- Breaking change trapping await javascript in version 1.4.26 HOT 12
- Packaging with nicegui-package makes process hang HOT 12
- Plotly charts are not responsive HOT 2
- Deploy nice gui on Aws beanstalk similar to django and flask
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.