Python use with browsers?

Maan M. Hamze mmhamze at pleiades.net
Thu Aug 23 09:44:58 EDT 2001


David
Sorry I managed to confuse the issues by replying to Steve.  Let me clarify
here:
1.  Steve is correct on the issue of JAVA.  In order to run Python on the
browser side you need to have a plugin installed on your clients' machines.
However you can use Jython that allows you to use Python on top of the Java
VM which will allow you to produce 100% JAVA code from the Python code you
write in the Jython environment.  So we are back to JAVA through Python code
written in Jython.
check  www.python.org for information on this and any useful links.
2.  I believe I misunderstood the reply due to the use of the term
ActiveScripting - which is associated with the use of Python as an ActiveX
Scripting language.  Instead of running Python on the client machine, you
can run it on the server side and use Active Server Pages (ASP).  In order
to be able to do that, you have to install the ActiveX Python Scripting
engine.  In this way, the clients do not have to have Python or a Python
plugin installed on their PC's.  This engine needs a Windows environment by
the way.  For this check the Active State Python distribution:
www.activestate.com    Python (ActivePython) section for windows.
This will install the whole thing ('regular' Python and all win32
extensions); OR
if you have python installed then you can install the win32all extensions
separately.  Check www.python.org
3.  In order to execute Python byte code on a client machine you need a
browser or a plugin that understands this.  I, personally, am not aware of
any Python plugins in order to do that.  Please note, that in this case you
need the plugin to be installed on all client machines that needs to run the
Python byte code.
Maan

"David Lees" <deblnonospammy at theworld.com> wrote in message
news:3B848DEC.386015D3 at theworld.com...
> I am afraid the original poster (me) is ignorant so a link or two to
> appropriate information is fine.  I need to check with our software head
> to find out exactly what he has in mind.  I was thinking of those Java
> applets that I assumed download Java byte code to your browser and then
> execute on the client.  So replace Java byte code with Python byte code
> and execute it from the browser.  I very much would like to understand
> what Steve and Maan refer to.
>
> Thanks,
>
> David Lees
>
>
> Steve Holden wrote:
> >
> > Indeed. But the question asked if Python could be used "as Java is used
in
> > the browser". Which I took to mean client-side, not server-side like
ASP.
> >
> > regards
> >  Steve
> > --
> > http://www.holdenweb.com/
> >
> > "Maan M. Hamze" <mmhamze at pleiades.net> wrote in message
> > news:to7dejr8jk4e87 at corp.supernews.com...
> > > Steve
> > > The win32all implementation installs the Python ActiveX scripting
engine.
> > > This means that it can be used in ASP pages without the need for any
> > client
> > > to have Python installed.  In cases like that, Python should be
installed
> > on
> > > the server only where Python is run.
> > > Maan
> > >
> > > "Steve Holden" <sholden at holdenweb.com> wrote in message
> > > news:sADg7.100020$rV6.4877746 at e420r-atl2.usenetserver.com...
> > > > "David Lees" <deblnonospammy at theworld.com> wrote in message
> > > > news:3B82FB32.258CB937 at theworld.com...
> > > > > Is there a way to run Python the way Java is run from a browser?
I
> > > > > assume Jython lets you do this?  But I am wondering if there is
some
> > > > > sort of Python VM plug-in that that allows a browser to execute
> > Python?
> > > > >
> > > > > I have written some Python code that is being ported to Java,
because
> > of
> > > > > the Java/Browser tie in and am wondering about ways the code could
be
> > > > > used directly.
> > > > >
> > > > The ActivePython implementation, or standard Windows Python with the
> > > > win32all extensions, allow you to use Python as an ActiveScripting
> > > language.
> > > > However, you will need to be able to guarantee that all your clients
> > have
> > > > Python installed: is this something under your control?
> > > >
> > > > regards
> > > >  Steve
> > > > --
> > > > http://www.holdenweb.com/
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >





More information about the Python-list mailing list