PYNQ: PYTHON PRODUCTIVITY

PYNQ board GUI error

i am trying to run gui in pynq board jupyter notebook. i got error [_tkinter.TclError: no display name and no $DISPLAY environment variable]…how to resolve this error

If you have a Zynq 7000, there is no GUI (be default). HDMI are connected to the PL. This is one reason why we use Jupyter notebook. Zynq 7000 doesn’t have a graphics accelerator.
Technically it is possible to do this via PL, but difficult and performance would be poor.

ZU devices are capable of displaying. Most ZU boards have a video out from the PS (e.g. display port), and have the ARM Mali graphics accelerator.

Cathal

Thank you for your response…i need to excute a small tkinder gui in pynq board jupyter notebook.is it possible to run in PS?
from tkinter import *

def buttonClick():
print(“It works”)

window=Tk()

btn=Button(window, text=“Check”, fg=“blue”, command=buttonClick)
btn.place(x=80, y=100)
window.title(‘Hello Python’)
window.geometry(“300x200+10+10”)
window.mainloop()
i try to run in jupyter notebook of pynq z1 board igot error

No, it won’t work. What are you trying to do? There may be a better way to do it.
Would widgets work for what you need?
https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Basics.html

Cathal

Is it work in ZCU104 board?
ipython widget is work in jupyter notebook itself . how it will work frond end and backend like web app?
flas based webapp works in pynq board .but it need local server(ngrok). without local server how to excute webapp in pynq board?

Thanks

I’m not sure what you are asking. Can you please try clarify your question?
The widgets render in the webbrowser on the host machine if this is what you are asking.

The widgets I suggested run with Jupyter, so they will run on any PYNQ enabled board.

Cathal

No sir, i need fontend and backend type gui design (excution code in backend and buttons,slider all in frond end) this type of Gui excute in pynq board.
ipython widget run in jupyter notebook that mean shell based output.
please let me know ,you are understand my requirement.

No, I don’t understand.
What do you need to do?

Cathal

sir, for example this code irun in jupyter notebook
from tkinter import *
def buttonClick():
print(“It works”)
window=Tk()
btn=Button(window, text=“Check”, fg=“blue”, command=buttonClick)
btn.place(x=80, y=100)
window.title(‘Hello Python’)
window.geometry(“300x200+10+10”)
window.mainloop()
the output is


GUI open in separate window right…
similarly other than tkinder which tool is use to design GUI that run on PYNQ board JUPYTER notebook?
Thanks

using ipython widget,is it possible to design GUI likeabove?

how to develop desktopapp in PYNQ board?

You could use widgets for interactive functionality.
Did you look at this link?
https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Basics.html

If you want to build something that is more like a GUI, Voila might give you what you need:
https://github.com/voila-dashboards/voila

Cathal

Thank you so much…this what i need…
If you want to build something that is more like a GUI, Voila might give you what you need:
https://github.com/voila-dashboards/voila-------------------This will work in Pynq board na sir…

See here for more info on Voila on PYNQ (with RFSoC)

Cathal

Thank you sir…I want to deploy a standalone application …its not hardware design…

sorry…just now i read the full page…thank you so much

i have one more doubt…RFSoC data visualisation dashboard creation using voila deployed in ZCU111 board. IS this type of GUI works in PYNQ board? PYNQ board doesnt have graphics driver sir?

ZCU111 board has mali graphic processing unit but PYNQ board doesnt have GPU. so stand alone application run in PYNQ board?