Forums

Embeding console to web-app

Hello guys,

I have a script running on a python3.6 console. I created a web-app with Flask and I would like to embed my console to the webapp. My aim is to easely go to my website and have a look at what my script is doing by just displaying the console.

However, when I embe with an Iframe my console (with share link provided by PA) it says that PA doesn't authorize connection.

Any ideas ?

Thanks !!

Paul

Looks like we already have conversation with you over email.

Looks like we already have conversation with you over email.

... So what is the answer?

Not putting the solution or answer here in the public forum doesn't really help the rest of us, does it?

:-/

The answer is that it wouldn't work as expected for many different reasons. You shouldn't use our consoles for running long jobs (because they're ephemeral by design) -- Scheduled tasks / Always-on task are the features that should be used. To check what is the task state, you should check its logs (and put some logging into the task). You can access them programmaticaly using our beta API for files endpoints. If you want to build a web app which would provide an interface to access the data gathered/processed by the task, you should create it in a way that it would have access to the data -- its usually done using a database.

You might want to check some of those links: