Using Matplotlib Output Client-Side in Browser With Skulpt - python

I am writing a Python application to be run client-side within the browser. The Skulpt project looks great for this, and I am pretty excited to begin working with it.
The one issue I can foresee, however, is that I will need graphical output using Matplotlib. Does Skulpt support Matplotlib? If not, what other options do I have?

Related

Noob Question About Python Web Automation

I've been learning HTML and CSS for about a year, I’m a massive noob at Python and I would like someone to clear some things up for me if possible.
I'm wanting to use a browser extension to automate some work tasks, there's a few good ones that work with JS but I'd like to focus on Python.
I understand that python would require a interpreter to work, I've ran some basic scripts on my PC but I don't understand how you'd execute scrips externally on the web.
Do web browsers have a built in interpreter?
Are there such extensions that exist?
And if so do they have interpreters built in?
Python is a brand new concept to me and I apologise if this is a stupid question. I aim to get the basics down first and then pick up a Raspberry Pi for some project work.
Do web browsers have a built in interpreter?
They have a JavaScript console in dev tools instead of python

What python visualization libraries support periodic callbacks in the browser?

The bokeh serve feature allows periodic callbacks that execute python code in the browser window at specified intervals. Do any of the other python visualization libraries like matplotlib or plotly or geoviews support this type of interactive updating in the browser window? By browser, I mean in a browser as a web page ready for deploying over the network, not Jupyter notebooks during development.
Voila allows the interactive updating in a more general sense in that it isn't tied to any one python visualization library. You use ipywidgets to connect interactivity, output, and underlying Python code. For example, callbacks are discussed here. You can see a number of examples in the Voila gallery. I have some simpler examples here.
Someone had similar questions about bqplot here.

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.

Displaying pyqtgraph and pyqt widgets on web

Is there a way to take existing python pyqtgraph and pyqt application and have it display on a web page to implement software as a service? I suspect that there has to be a supporting web framework like Django in between, but I am not sure how this is done.
Any hints links examples welcome.
If all you need are static plots, then it should be straightforward to draw and export to an SVG file, then display the SVG in a webpage (or export to image, as svg rendering is not reliable in all browsers). If you need interactivity, then you're going to need a different solution and probably pyqtgraph is not the tool for this job. VisPy does have some early browser support but this has only been demonstrated with ipython notebook.
Here is what I have sort of put together by pulling several threads online:
Ruby On Rails seems to be more popular than python at this moment.
If you go python, Flask and Django are good templates.
bokeh seems to be a good way of plotting to a browser.
AFAIK, there is no way to take an existing PyQt or pyqtgraph application and have it run on the web.
I am not sure how Twisted (Tornado, Node.js and Friends) fits in to the web SaaS, but I see it referred to occasionally since it is asynchronous event-driven.
People often suggest using Rest, but that seems slow to me. Not sure why...

Blender3d vs 3DS max; which one is better suited for automation in python?

I am getting started with the development of 3d environments for using in panda3d. As I am new to this, I need to choose a modelling software to create basic geometries, etc. Therefore, which one is better suited for automation through python? 3DS Max or Blender3D? I would like to automate generating basic geometries, the export process and some basic animations. Blender has the benefit of being free, but my office will provide me the licenses for 3DS if I request, so that is not a problem.
From a python automation point of view, blender itself is written largely in python, and the source is available which allows a level of automation not possible if you can't change the source. To me, having the source available in that situation is more of a benefit than the price tag.
If you do go with blender, definitely grab the 2.5 beta. They made some huge UI and scripting improvements. In my opinion, most of the complaints about it being difficult to learn compared to commercial packages are no longer valid for 2.5, especially if you don't have the mental burden of already having learned another software's interface.
Actually the poster Karl Bielefldt is wrong. Blender is not written in python is written in C. What is written in python is some script tools, python is used as blender's script engine , but in the end what is triggered are C libraries. That is not big deal though since python itself is written in C.
However all this is totally unrelated to your question.
Since the engine you are going to use is third party and not the game engine of blender, there is no reason for you to consider Blender as a mandatory choice. Any 3d package can serve you well. This is because as other kind of software, 3d software has several formats that are common ammong 3d apps. Like *.3ds and *.obj . So that means that you can use anything you wish like Maya, XSi, Ciname 4d , anything. As almost 3d software saves to these common file formats.
However I would strongly advice to take a look at blender game engine. The blender game engine automates alot of things and has a gui inside blender that minimises coding unlike Panda 3d which requires everything to be coded regarding the engine.
You can save loads of time with blender's game engine.
There is even a blender game that was developed using solely with the blender game engine , its called project apricot or Yo Fankie.
Apricot Project
You can download it for free and see the source to help you learn loads of things for Blender Game engine.
Good luck.

Categories