Falko Schindler

Results 231 comments of Falko Schindler
trafficstars

Hi @tacaswell, thanks for the suggestion! Can you give an example on how we would use the new interface compared to the current API? And what exactly is the problem...

Thanks, @tacaswell! Let me comment on the individual ideas: 1. **Create `Figure` objects.** You can do that already with the existing API: ```py with ui.pyplot(figsize=(3, 2)) as plot: fig =...

> The point of not using pyplot is that `nicegui` should not use pyplot (because it provides no real benefit and a whole lot of costs). I think I didn't...

Oh, I see. I never really thought about the relation between matplotlib and plotly. Just for reference, here's ChatGPT's explanation on this matter: > The relationship between Matplotlib and `pyplot`...

I just updated the code to reflect the new API ```py with ui.matplotlib(figsize=(3, 2)) as fig: ... ``` There's one issue though: A UI element is supposed to return itself...

@rodja I finished the new `ui.matplotlib` element. In contrast to our earlier idea we _need_ the figure context to know when up update the rendered HTML. Now this is the...

@tacaswell Here I explained the problem: https://github.com/zauberzeug/nicegui/pull/2553#issuecomment-1978135827

@superlou This works for me on Mac: ```py watchfiles --filter python "python main.py" ```

That's very unfortunate, @superlou, @jdavidremm and @collisee! It would be great if anyone with a Windows system could reproduce the problem and dig deeper to find the underlying cause.

@superlou To remove NiceGUI from the equation, I like to use the following minimal FastAPI/Uvicorn example: ```py #!/usr/bin/env python3 import uvicorn from fastapi import FastAPI from fastapi.responses import PlainTextResponse app...