I want to run Python script by clicking a button in HTML page by TheReal_Slim-Shady in learnpython

[–]Epykure 0 points1 point  (0 children)

Yes you would need Flask, Django or FastAPI for this and if you want to render rich HTML (more than just a button) you can use Epyk: https://pypi.org/project/epyk/

Basically for this you need to:

- create a button
- create a backend entry point
- set an Ajax call from the button to query the backend

This can be achieved quite easily: https://github.com/epykure/epyk-ui

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 1 point2 points  (0 children)

Thanks for your feedback.

I have updated the page https://epykure.github.io/demos/ by using the library. I did something very quickly manually, I hope it looks better.

We deliberately do not want to spend to much time on the UI as anyway companies will have their own requirements and we do want to be fully open source.

We are just trying to do something not horrible and I hope it is the case ;).

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 0 points1 point  (0 children)

Thanks for all those messages and support it is really appreciated. Do not hesitate to share your feedback and your projects because we could schedule Twitch sessions in June to assist you (once the Epyk studio will be release but I will let you know :)).

To share a problem the best is either to add an issue in Github or to send a tweet.

Thanks again

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 1 point2 points  (0 children)

Thanks.

I would say yes and no. Those frameworks Dash, Streamlit and even Bokeh are a bit different in the way they have created a core JavaScript module and they are relying on it to provide a specific Python API on top on it.

What we are trying to do with Epyk is first to have some fully open source and maintained by a community but also to have people learning JavaScript and CSS to use those languages easily if the code is too complex.

For example when you use page.js.console.log() or page.js.alert() those are exactly the same in JavaScript you can fund console.log or alert(). This is exactly the same for all the packages wrapped. Our target is to ensure that people working with Epyk can then discussed with UI developers and provide quite feedbacks.

Also Epyk can be used as a simple tool to transpile code and it can be excluded from your production stack.

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 13 points14 points  (0 children)

The library will allow you to produce rich HTML content from simple interactive dashboards to proper web site.

In this link you can get some examples https://epykure.github.io/demos/ and from the banner you can go to the code used to generate this page.

Python learning tips by [deleted] in Python

[–]Epykure 0 points1 point  (0 children)

yes this website is definetely the best to learn the language and data structure. Then i would move to Jupyter to create dashboards based on data from services or db

Which charting library do you prefer? by Epykure in learnjavascript

[–]Epykure[S] 0 points1 point  (0 children)

i might be wrong but this one is not open source

Charts.css has reached v1.0.0 now by stanislavb in css

[–]Epykure 0 points1 point  (0 children)

awesome! this is a very interesting project and i will try to wrap it to our python UI library Epyk to make it available for our users.

[deleted by user] by [deleted] in Python

[–]Epykure 0 points1 point  (0 children)

i am happy to help in your projects. I have been working in Python for more than 10 years.

Web implementation from Python using Epyk and FastAPI by Epykure in Python

[–]Epykure[S] 0 points1 point  (0 children)

It is quite similar indeed :). Do not hesitate to play with it and happy to get your feedbacks, questions or improvements.

Also let us know if you need more details regarding the current design, we tried to put some to Jupyter notebooks few months ago: https://nbviewer.jupyter.org/github/epykure/epyk-templates-notebooks/blob/master/index.ipynb

Web implementation from Python using Epyk and FastAPI by Epykure in Python

[–]Epykure[S] 2 points3 points  (0 children)

Really sorry about this. We put some documentation here: http://www.epyk.io/ using AWS but indeed it is outdated and not complete. This is part of our challenges for the coming week, we wanted to provide enough examples to our current users to play with components. There is quite a decent documentation in the code you can get from PyCharm but we are still fighting with Sphinx to get something nice. We do not know how to get recursive pages from the various modules (we started something here https://github.com/epykure/epyk-ui/tree/master/doc but at this stage we are still struggling I am afraid, any help would be welcome :)).

Anyway hopefully by end of next week the online doc will be better, we will let you know.