Live data from Hacker News

Pyxley: Python Powered Dashboards

multithreaded.stitchfix.com

41–47 of 47 posts

Re: Pyxley: Python Powered Dashboards

#41
post #12

How easy is it to integrate a chart or graph into a larger project? My biggest gripe with Shiny is how difficult is to use the R calculate and graphing functions in a larger project without using OpenCPU as an API. My guess is that with Python being a more general purpose language, this should be easier..

Why you don't want to use OpenCPU?

Re: Pyxley: Python Powered Dashboards

#42
post #11

Earlier quoted context omitted.

D3 is pretty ok with large datasets but I understand your point. What Shiny does to get around this is natively 'evaluate' the plots on the backend, creating a rasterized PNG file. A similar approach could work for Pyxley (using matplotlib or Seaborn to render the plot, and then sending that image file to the front end) but I fear with so much development time spent on d3 support such an approach would not be nativel…

>What Shiny does to get around this is natively 'evaluate' the plots on the backend, creating a rasterized PNG file I don't think that's the case for D3 charts, because that would kill the interactivity that is so great about D3. I use RCharts to inject D3 into my Shiny applications, and have ran into into performance issues with just a couple hundred data points. I think this is because all heavy lifting is done by…

htmlweidget is kinda an evolution to rcharts by the same person if i recall correctly.

Re: Pyxley: Python Powered Dashboards

#43
post #36

Earlier quoted context omitted.

Dashing is great, but it's Ruby on the backend, not Python :)

It actually has a REST API for sending a dashboard data so you can pump in new data from Python or any language.

Yeah, well aware. I was only address this from GP:

> I've been looking for something to do this (below) in python at least on backend.

Re: Pyxley: Python Powered Dashboards

#44
post #12

How easy is it to integrate a chart or graph into a larger project? My biggest gripe with Shiny is how difficult is to use the R calculate and graphing functions in a larger project without using OpenCPU as an API. My guess is that with Python being a more general purpose language, this should be easier..

Why you don't want to use OpenCPU?

I've been working with it and it's not bad - won't tear my hair out if it's what I use in the end. But a couple pain points for me are the need to rewrite my code to grab 'session variables', needing to understand how images are returned, especially if you need to return more than one, and so on - versus Shiny, which allows me to more or less drop in the code I've already been working with. Oh, and parallel requests are just not possible.

Of course, most of these issues are understandable and possibly by design, especially since OpenCPU was designed for embedded systems. That's fine - it just makes creating webapps or dashboards around R a more complicated usecase.

Re: Pyxley: Python Powered Dashboards

#45
post #9
post #5

looks great. but i can't help but think it would save everyone a lot of time -- maybe not up-front, but in the long-run -- if we wrote these frameworks in c and just wrote language bindings for r, python, ruby, etc. why are we rebuilding good frameworks over again just because they're not written in our preferred language?

There is a big divide between interpreted and compiled resources though. If you have the original source in an interpreted language, it supports your ARM raspberry pi or chromebook just as well. With the C variation you need to build / package / install. I've kinda just come to accept that code re-use cross language has never been good except with the unix pipe.

Except tons of Python code depends on C. This project depends on Pandas. Pandas has C dependency.

So to run this there's code that needs to be compiled anyway.

Re: Pyxley: Python Powered Dashboards

#46
post #34

Earlier quoted context omitted.

Why is having R a limitation? R is a fantastic data language which arguably beats all others in terms of number of libraries and data manipulation tools.

R has no native bayesian library like Pymc 3 (Must use stan which is c++). Also Python is better for ad hoc and agent based modeling and for out of core data with blaze and dask. So no, R is not ahead in everything.

I'm not trying to get into a R vs. Python argument, both have their strengths, but is it really true that R doesn't have anything like Pymc?

https://cran.r-project.org/web/views/Bayesian.html

Re: Pyxley: Python Powered Dashboards

#47
post #46
post #34

Earlier quoted context omitted.

R has no native bayesian library like Pymc 3 (Must use stan which is c++). Also Python is better for ad hoc and agent based modeling and for out of core data with blaze and dask. So no, R is not ahead in everything.

I'm not trying to get into a R vs. Python argument, both have their strengths, but is it really true that R doesn't have anything like Pymc? https://cran.r-project.org/web/views/Bayesian.html

Unless you can help here, I see alot of pre coded models and older samplers, but nothing with a flexible JIT for user extensible variab;es and autodiff for newer HMC and NUTS type samplers. Exception being STAN, but that is its own C++ modeling language, can't talk to R functions , is more verbose than PYMC 3 and doesn't do discrete variables (unlike pymc3).
Post reply on HN