CS6 & Python scripting - python

I have written a couple of scripts and now I would like to make a web based front end to run those scripts so that its more user friendly where users can upload files and then click a few buttons to choose what they want in order to generate the configurations. As of now it works by the script using a path to the file. My question is , can i design the HTML using CS6 and then link python scripts to it, Or I have to learn and code in HTML using flask and Jinja2 templating for this to work. I am obviously not a website designer or have any experience in css,java or html

Related

Develop a graphical interface for Python applications

I am developing a python application.
This application generates as a final result a table of type .xlsx
To reach the final table I used Anaconda's jupyter.
I would like to create a graphical interface for the python application. However, I have some theoretical doubts on the subject:
Since, I would like to enter the table and show the statistical results to the user (according to filters applied by the users). What would be the most appropriate approach?
Option A) Use an interpreter, such as TkInter? Are these interpreters capable of
generating an executable? Is it able to receive a data entry table?
Option B) Use a web framework, such as Django. Does this framwork host the built page?
It is capable of receiving a data entry table.
I am open to more options. Thank you.
tk is better for a distributed desktop application. It can be packaged and distrubuted.
Another option is a cool package called Eel, kinda like electron for python. You can build desktop apps using html, css, js, and most of all python: https://github.com/samuelhwilliams/Eel

How can i transfer my python program on a website

I got a program, written in python, and my mission is to implement this on a website, so other can have access to it. I already tried Django and Flask, but they want me to translate my python code into html. I'm searching for the possibility to Paste my python program into a file which implements the program on a website.
PS: My program includes a user interface and File implements.

How to use brython to create an interactive python script writer

I am trying to create a site which auto generates python code and is presented to the user in an ide style where they can edit it then run it live using brython.
I am having trouble setting up the ide part I found brython console but that won't work for editing things. So my question is are there any existing implementations I can use?
I think you want an extensible web IDE. An IDE that runs in the browser that expects you to build on top of, so that you can likely get the text out of it to provide to Brython. I'd try searching for terms like these:
extensible web IDE
web IDE framework
IDE framework in JavaScript
et c.

I am trying to map python into web page.

I have few scripts written and trying to map those scripts with web page so that any user want to run a script just need to click the button on the web page and script will run at background, output will show on the web screen...
I have no idea how to proceed on this. Can someone help me ??
For you to accomplish this you will need to write some backend code that initiates your script from your webserver. This is because your browser can only run JavaScript. Python would have to run on the webserver.
There are many Python frameworks that can make this task easier such as Django, Bottle and Flask.

Python sample on Bluemix displays source code instead of HTML output - why?

I am trying out Python on Bluemix. To do this I decided to move an example from a book that worked fine on my Windows laptop. I created the Bluemix example app, then replaced the index.html with the html file from the sample and built my directory tree beneath the static directory. The server starts up fine and displays the intro html file as expected, but when I click on a link that should build my html page it displays the page as source code instead of executing it. On Windows this works perfectly. My call to the page looks like this:
My data.
I have heard that on Linux environments you sometimes need to point out the python executable, but what is the right location of that in a Bluemix environment? Another question would be if the .py file is set to executable, but I don't know how you set such a thing in Bluemix.
All help is appreciated.
You can't directly link to a Python file in a Python webapp. You should use something like Flask to serve your application. Flask can do routing for you.
Additionally, in Bluemix and other Platform as a Services' there is only a single binary entry point to your app. You can't have multiple binary entry points.
See this example app on how to deploy a Flask app.
Additionally, you can click the button below to directly deploy the example app to Bluemix.

Categories