thought

If you ever run into a good set of web tools such as you must be using, which interfaces well with the Python Progrmming Language – let me know!  I want to interface with things like this & do I/O with such n-dimensional figures & manipulate the permutations & combinations & attributes with python internally & select some I/O from the user. 

Tags

  1. python
  2. shiftedit
  3. heroku

Comments


Seth says
you might want to consider embedding your app in a item … that would give your app a nifty web interface to interact with it.  i do believe … correct me if i am wrong here nathan … that you cold call your python app from within the item.   this of course is edgy stuff and not as yet defined.  but there is no reason that this system cannot do it. 

Seth says
nathan@fbi 2015-12-20 21:32:33 [item 19293#38424]
I think you filter is removing <scirpt> tags currently. Thought I saw that. And if it is not, it should be.

But that’s what I am thinking about. Providing a safe way to put a plugin in a page, which is essentially a script.

What you don’t want is people putting <script> tags in the page (using source mode obviously) and then those scripts running whenever their post/item/article comes up in any feed. That would allow them to do crazy things to everyone’s posts. It has to be tied to something more controlled, like only the singe item view, and sandboxed as much as possible on the scope of when it can run.
seth@fbi 2015-12-20 22:19:47 [item 19293#38425]
… or a sanctioned gadget dragged from a pallet.
nathan@fbi 2015-12-20 22:52:27 [item 19293#38426]
Yep. That’s another way. Or private posts. Who cares what they do on a private page that no one else can see … the ajax channels would need to be protected, but they need that anyway because anyone can run any javascript and load any source code by simply using the debug console in any browser.
like

Si says
nathan@fbi 2015-12-20 17:39:07 [item 19293#38419]
I am using the web base software IDE at http://shiftedit.net. It has direct support for nearly any language, including Python. The free version does about anything you would probably need. 
mark@fbi 2015-12-20 20:30:07 [item 19293#38423]
like
choy 2015-12-29 14:01:57 [item 19293#39793]
tried to edit & run a simple python program, but it appears that it doesn’t run one.
nathan@fbi 2015-12-29 14:09:34 [item 19293#39794]
Were are you deploying it to? You have many choices. I suggest heroku … it’s free and easy. If your only wanting to play around with python code, I suggest http://pythonfiddle.com/ instead … no deployment needed.
choy 2015-12-29 14:14:46 [item 19293#39795]
Well, I wanted to keep it local, next run it on my IIS local & then eventually decide . I once configured Apache & Tomcat locally, but no need since Windows 10 has an IIS – need to refresh how to set it up though – been a few years.  Thanksyes
Personally I would not use IIS locally. It’s klunky, hard to set up, and not what you will likely be deploying to on the web. Just use XAMPP … it’s easy to install and use and will exactly mirror what you will have at a host site and can even live on a USB stick. That’s how I do local installs. Here is a fork of XAMPP called AMPPS that already has Python installed. http://www.ampps.com/ . You should be able to just install it and start using it. You can then still use shifteedit as your IDE for it.

Mark de LA says
nathan@fbi 2015-12-29 14:48:40 [item 19293#39798]
But you might ask yourself why you really want to do this locally? Even though it is fairly easy with things like XAMPP, it’s still a pain in the butt compared to just doing things in the cloud. With heroku (or any similar service) you can set up a free hosted site with *absolutely anything* installed on it and play and build to your hearts content without having to fiddle with local stuff and windows oddities and anything else.

The only reason I do a local install anymore is if I need to do work offline, like when I’m up in the Santa Cruz mountains or the Appellation outback … then I do a usb stick install so I can just plug it into any computer and run the site. But when I have the option of being online, using a host is so much easier.  
like

See Also

  1. Thought about: Look at all the Google Cloud Apps that we can deploy with 258 viewings related by tag "heroku".
  2. Thought Heroku with 2 viewings related by tag "heroku".
  3. Thought Python on Rails ?? with 0 viewings related by tag "python".