Python vs JavaScript

Just watched Adam's first Fundamentals on LinearFit and he uses Python to do some data ingest & plotting.  I'm a data scientist, part of a group of about 500 other PhDs in my company that do this, and we use Python about 95% of the time in our projects.  If it's not Python, then it's R, but that's only for weirdly advanced statistical analyses common in the life sciences... anyway... what's the point... 

I've been a bit dismayed w/ PixInsight NOT having a Python API (Application Programmers Interface), but rather Javascript.  Communicated w/ the developers and they have no plans to create a Python API, so I / we are sort of stuck w/ Javascript

Does anybody know of a way to interface the two language seamlessly, so that PixInsights object library can be used natively within Python, and maybe even Javascripts that are native to PixInsight can call Python code?  

Are there any other tidbits of information / stuff that others can think of to bridge this gap?

Thanx tons
jim

Comments

  • HI Jim,

    I wish for the same thing! It would be great, for example, to be able to access FITs headers using methods like those found in Astropy to do cool things (as well as matplotlib to graph stuff)..

    I am not knowledgeable in this area. It is unlikely you will find a responder on this forum (but maybe!). 

    The official forum or cloudynights are probably the best places. 

    -the Blockhead
  • Yeah... I resisted ANY kind of object-oriented programming for many years.  Then a customer insisted I build something in Python... it took me about 1/2 a day to get CRAZY over the language.  Between the simplicity and elegance of the syntax, to the fully obj-or coding paradigm... it is the perfect language for the widest array of data handling techniques.  That's why it is virtually 100% dominant in the field of data science / analytics / AI development.

    Anyway... I'll poke around my work and see what folks think about bridging the two languages and get back to you... there HAS TO BE A WAY... OMG... nothing else would make sense...

    CYa... and enjoying the site... and maybe even getting better at astrophotography... but I'm a scientist and anything 'artsy' or 'esthetic' doesn't come naturally !!!

    Jim

    PS:  Once one goes beyond straight matplotlib to some of the more sophisticated 2/3D graphing routines... (usally built on matplotlib as a foundation, but carrying capabilities further) the visualization aspects of Python really explode...
Sign In or Register to comment.