Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra

Only adding the .png extention is not sufficient.

outputfile = os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')


 Outfile from Matplotlib




Besides this issue; is using a temporarily file a mature solution or is 
streaming preferrable?


Richard


Op 7-9-2011 21:46, Anthony schreef:

On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard wrote:





Should be URL('static','mp1.png').

Anthony


Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 09/02/11 
08:34:00





Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra

Anthony,

plt.savefig('c:\web2py\outputfile.png',format='png')

does me give an accessable png-file

Op 7-9-2011 22:20, Anthony schreef:
Have you confirmed that the file is actually getting saved in the 
expected location? Are you able to run the matplotlib code and save 
the file outside of web2py?



On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard wrote:

Only adding the .png extention is not sufficient.

outputfile = os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')


 Outfile from Matplotlib




Besides this issue; is using a temporarily file a mature solution
or is streaming preferrable?

Richard


Op 7-9-2011 21:46, Anthony schreef:

On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard wrote:





Should be URL('static','mp1.png').

Anthony


Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 09/02/11 
08:34:00





Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra
Yes it does :)


Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:

> But does 
> plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png') 
> result in a file being saved in c:\web2py\applications\your_app\static\?
> 
> 
> On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote:
> Anthony,
> 
> plt.savefig('c:\web2py\outputfile.png',format='png')
> 
> does me give an accessable png-file
> 
> Op 7-9-2011 22:20, Anthony schreef:
>> 
>> Have you confirmed that the file is actually getting saved in the expected 
>> location? Are you able to run the matplotlib code and save the file outside 
>> of web2py?
>> 
>> 
>> On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard wrote:
>> Only adding the .png extention is not sufficient.
>> 
>> outputfile = os.path.join(request.folder,'static','mp1.png')
>> plt.savefig(outputfile,format='png')
>> 
>> 
>>  Outfile from Matplotlib
>> 
>> 
>> 
>> 
>> Besides this issue; is using a temporarily file a mature solution or is 
>> streaming preferrable?
>> 
>> Richard
>> 
>> 
>> Op 7-9-2011 21:46, Anthony schreef:
>>> 
>>> On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard wrote:
>>> 
>>> 
>>> 
>>> Should be URL('static','mp1.png').
>>> 
>>> Anthony
>>> 
>>> 
>>> Geen virus gevonden in het binnenkomende-bericht.
>>> Gecontroleerd door AVG - www.avg.com 
>>> Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
>>> 09/02/11 08:34:00
>>> 
>> 
>> 
>> 
>> Geen virus gevonden in het binnenkomende-bericht.
>> Gecontroleerd door AVG - www.avg.com 
>> Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 09/02/11 
>> 08:34:00
>> 
> 



Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra
Looking closer an output window appears and the console gives errors on the 
sequence of calling matplotlib.backends:

I'll check first.



Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:

> But does 
> plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png') 
> result in a file being saved in c:\web2py\applications\your_app\static\?
> 
> 
> On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote:
> Anthony,
> 
> plt.savefig('c:\web2py\outputfile.png',format='png')
> 
> does me give an accessable png-file
> 
> Op 7-9-2011 22:20, Anthony schreef:
>> 
>> Have you confirmed that the file is actually getting saved in the expected 
>> location? Are you able to run the matplotlib code and save the file outside 
>> of web2py?
>> 
>> 
>> On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard wrote:
>> Only adding the .png extention is not sufficient.
>> 
>> outputfile = os.path.join(request.folder,'static','mp1.png')
>> plt.savefig(outputfile,format='png')
>> 
>> 
>>  Outfile from Matplotlib
>> 
>> 
>> 
>> 
>> Besides this issue; is using a temporarily file a mature solution or is 
>> streaming preferrable?
>> 
>> Richard
>> 
>> 
>> Op 7-9-2011 21:46, Anthony schreef:
>>> 
>>> On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard wrote:
>>> 
>>> 
>>> 
>>> Should be URL('static','mp1.png').
>>> 
>>> Anthony
>>> 
>>> 
>>> Geen virus gevonden in het binnenkomende-bericht.
>>> Gecontroleerd door AVG - www.avg.com 
>>> Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
>>> 09/02/11 08:34:00
>>> 
>> 
>> 
>> 
>> Geen virus gevonden in het binnenkomende-bericht.
>> Gecontroleerd door AVG - www.avg.com 
>> Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 09/02/11 
>> 08:34:00
>> 
> 



Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra

The mp1.png file is in the static directory of my application

The following views/default/index  only gives an empty page with
"None"  in the top left corner.


{{left_sidebar_enabled=right_sidebar_enabled=False}}

{{extend 'layout.html'}}
{{if 'message' in globals():}}

{{=message}}

#Events
#{{=db().select(db.Events.ALL)}}

 Outfile from Matplotlib



{{else:}}
{{=BEATIFY(response.vars)}}
{{pass}}

{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}


Op 7-9-2011 23:35, Richard Dijkstra schreef:
Looking closer an output window appears and the console gives errors 
on the sequence of calling matplotlib.backends:


I'll check first.



Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:

But does 
plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png') 
result in a file being saved in c:\web2py\applications\your_app\static\?



On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote:

Anthony,

plt.savefig('c:\web2py\outputfile.png',format='png')

does me give an accessable png-file

Op 7-9-2011 22:20, Anthony schreef:

Have you confirmed that the file is actually getting saved in
the expected location? Are you able to run the matplotlib code
and save the file outside of web2py?


On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard wrote:

Only adding the .png extention is not sufficient.

outputfile = os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')


 Outfile from Matplotlib




Besides this issue; is using a temporarily file a mature
solution or is streaming preferrable?

Richard


Op 7-9-2011 21:46, Anthony schreef:

On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard
wrote:





Should be URL('static','mp1.png').

Anthony


Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00







Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 09/05/11 
08:35:00





Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra

Richard,

To be sure about the comment I made the following view, which had the 
same None  result


{{extend 'layout.html'}}

 Outfile from Matplotlib



regards,
Richard



Op 8-9-2011 22:11, Richard Vézina schreef:
Not sure but I think there is a mistake in your view that should be ok 
without it


The # not work to comment a line in the view so try remove your line 
completly or you may try with  html commenting caracter... But 
those don't prevent web2py to interpret the {{=}}, so what I usually 
do si to remove the "="


Hope it helps

Richard


On Thu, Sep 8, 2011 at 3:55 PM, Richard Dijkstra 
mailto:richard.dijks...@planet.nl>> wrote:


The mp1.png file is in the static directory of my application

The following views/default/index  only gives an empty page with
   "None"  in the top left corner.

{{left_sidebar_enabled=right_sidebar_enabled=False}}

{{extend 'layout.html'}}
{{if 'message' in globals():}}

{{=message}}

#Events
#{{=db().select(db.Events.ALL)}}


 Outfile from Matplotlib



{{else:}}
{{=BEATIFY(response.vars)}}
{{pass}}

{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}


Op 7-9-2011 23:35, Richard Dijkstra schreef:

Looking closer an output window appears and the console gives
errors on the sequence of calling matplotlib.backends:

I'll check first.



Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:


But does
plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png')
result in a file being saved in
c:\web2py\applications\your_app\static\?


On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote:

Anthony,

plt.savefig('c:\web2py\outputfile.png',format='png')

does me give an accessable png-file

Op 7-9-2011 22:20, Anthony schreef:

Have you confirmed that the file is actually getting saved
in the expected location? Are you able to run the
matplotlib code and save the file outside of web2py?


On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard
wrote:

Only adding the .png extention is not sufficient.

outputfile =
os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')


 Outfile from Matplotlib




Besides this issue; is using a temporarily file a
mature solution or is streaming preferrable?

Richard


Op 7-9-2011 21:46, Anthony schreef:

On Wednesday, September 7, 2011 3:35:23 PM UTC-4,
Richard wrote:





Should be URL('static','mp1.png').

Anthony


Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00







Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd
door AVG - www.avg.com <http://www.avg.com>

Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 
09/05/11 08:35:00






Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 09/05/11 
08:35:00





Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra
The view is not executed. Adding return dict() doesn't have effect. Even 
this dict() does not lead to an error.


{{extend 'layout.html'}}
{{if 'message' in globals():}}

 Outfile from Matplotlib



return dict()



Op 8-9-2011 22:24, Anthony schreef:
Have you shown us your entire index() function? If so, your view file 
isn't getting called at all because your index function is not 
returning a dictionary. Instead, web2py is simply returning whatever 
your function returns, which is probably None if the last line is a 
call to plt.savefig(). Add return dict() to the end of your index 
function, and see if it works. Views are only called if the controller 
function returns a dictionary.


Anthony

On Thursday, September 8, 2011 3:55:35 PM UTC-4, Richard wrote:

The mp1.png file is in the static directory of my application

The following views/default/index  only gives an empty page with
   "None"  in the top left corner.

{{left_sidebar_enabled=right_sidebar_enabled=False}}

{{extend 'layout.html'}}
{{if 'message' in globals():}}

{{=message}}

#Events
#{{=db().select(db.Events.ALL)}}

 Outfile from Matplotlib



{{else:}}
{{=BEATIFY(response.vars)}}
{{pass}}

{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}


Op 7-9-2011 23:35, Richard Dijkstra schreef:

Looking closer an output window appears and the console gives
errors on the sequence of calling matplotlib.backends:

I'll check first.



Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:


But does
plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png')
result in a file being saved in
c:\web2py\applications\your_app\static\?


On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote:

Anthony,

plt.savefig('c:\web2py\outputfile.png',format='png')

does me give an accessable png-file

Op 7-9-2011 22:20, Anthony schreef:

Have you confirmed that the file is actually getting saved
in the expected location? Are you able to run the
matplotlib code and save the file outside of web2py?


On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard
wrote:

Only adding the .png extention is not sufficient.

outputfile =
os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')


 Outfile from Matplotlib




Besides this issue; is using a temporarily file a
mature solution or is streaming preferrable?

Richard


Op 7-9-2011 21:46, Anthony schreef:

On Wednesday, September 7, 2011 3:35:23 PM UTC-4,
Richard wrote:





Should be URL('static','mp1.png').

Anthony


Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00







Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 
09/05/11 08:35:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 09/05/11 
08:35:00





Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra

It works, thanks :)
Next step is to upgrade the HTML code because this just looks like text.

regards, Richard


Op 8-9-2011 23:30, Anthony schreef:
No, you need to add return dict() to the end of you index() function 
in your controller -- not to the view file.


Anthony

On Thursday, September 8, 2011 4:45:51 PM UTC-4, Richard wrote:

The view is not executed. Adding return dict() doesn't have
effect. Even this dict() does not lead to an error.

{{extend 'layout.html'}}
{{if 'message' in globals():}}

 Outfile from Matplotlib



return dict()



Op 8-9-2011 22:24, Anthony schreef:

Have you shown us your entire index() function? If so, your view
file isn't getting called at all because your index function is
not returning a dictionary. Instead, web2py is simply returning
whatever your function returns, which is probably None if the
last line is a call to plt.savefig(). Add return dict() to the
end of your index function, and see if it works. Views are only
called if the controller function returns a dictionary.

Anthony

On Thursday, September 8, 2011 3:55:35 PM UTC-4, Richard wrote:

The mp1.png file is in the static directory of my application

The following views/default/index  only gives an empty page
with"None"  in the top left corner.

{{left_sidebar_enabled=right_sidebar_enabled=False}}

{{extend 'layout.html'}}
{{if 'message' in globals():}}

{{=message}}

#Events
#{{=db().select(db.Events.ALL)}}

 Outfile from Matplotlib



{{else:}}
{{=BEATIFY(response.vars)}}
{{pass}}

{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}


Op 7-9-2011 23:35, Richard Dijkstra schreef:

Looking closer an output window appears and the console
gives errors on the sequence of calling matplotlib.backends:

I'll check first.



Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:


But does

plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png')
result in a file being saved in
c:\web2py\applications\your_app\static\?


On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard
wrote:

Anthony,

plt.savefig('c:\web2py\outputfile.png',format='png')

does me give an accessable png-file

Op 7-9-2011 22:20, Anthony schreef:

Have you confirmed that the file is actually getting
saved in the expected location? Are you able to run
the matplotlib code and save the file outside of web2py?


On Wednesday, September 7, 2011 4:05:08 PM UTC-4,
Richard wrote:

Only adding the .png extention is not sufficient.

outputfile =
os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')


 Outfile from Matplotlib




Besides this issue; is using a temporarily file a
mature solution or is streaming preferrable?

Richard


Op 7-9-2011 21:46, Anthony schreef:

On Wednesday, September 7, 2011 3:35:23 PM UTC-4,
Richard wrote:





Should be URL('static','mp1.png').

Anthony


Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van 
uitgifte: 09/02/11 08:34:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com/>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 
09/02/11 08:34:00







Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 
09/05/11 08:35:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 
09/05/11 08:35:00





Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3878 - datum van uitgifte: 09/05/11 
08:35:00





Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
I have checked pyjs, looks great. What can't you do with pyjs?

I want to make cockpit like application with tabs and embedded graphs. Must be 
possible with pyjs. Do you agree?

regards, Richard




Op 10 sep 2011, om 22:22 heeft Carl het volgende geschreven:

> Have a look at pyjs.org
> It converts Pyrhon into JavaScript.



Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
That example and the info hierarchy and tabs example are the widgets we will be 
using. Looks fine to us.
however I do not have a clear view on how pyjama is used within web2py. I have 
looked at the pyjamas example http://www.web2py.com/appliances/default/show/45 
but I can't figure out what is specific pyjama besides the ajax code.


Op 11 sep 2011, om 12:37 heeft Carl het volgende geschreven:

> I would say it's worth a look for charts & graphs.
> Here's one example:
> http://pyjs.org/examples/gcharttestapp/output/GChartTestApp.html



Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Carl,

Thank for the conceptual advise.
Besides the examples is also a tutorial for pyjama -  web2py  available.


Op 11 sep 2011, om 12:55 heeft Carl Roach het volgende geschreven: Or a brief 
pyjama-w2p cookbook recipe like:
- create database
- create webpage thru pyjama
- connect ... using ajax
- ...

Would be convenient. I do not know whow wrote the pyjama example on web2py, 
maybe he/she might give some tips.


> The AJAX is the only 'bit' that is Web2py specific.
> Your mental model will need to shift to "writing an application in Pyjamas 
> rather than writing web pages". That applications, thru ajax can communicate 
> with your Web2py instance.
> 
> On 11 September 2011 11:52, Richard Dijkstra  
> wrote:
> That example and the info hierarchy and tabs example are the widgets we will 
> be using. Looks fine to us.
> however I do not have a clear view on how pyjama is used within web2py. I 
> have looked at the pyjamas example 
> http://www.web2py.com/appliances/default/show/45 but I can't figure out what 
> is specific pyjama besides the ajax code.
> 
> 
> Op 11 sep 2011, om 12:37 heeft Carl het volgende geschreven:
> 
>> I would say it's worth a look for charts & graphs.
>> Here's one example:
>> http://pyjs.org/examples/gcharttestapp/output/GChartTestApp.html
> 
> 



Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Carl,  

Thanx, we'll meet on linkedin.

Richard

Op 11 sep 2011, om 13:43 heeft Carl Roach het volgende geschreven:

> you might try asking for help here: 
> http://www.linkedin.com/groups?gid=3634078&trk=hb_side_g
> 
> otherwise... work through the example of ajax and then look at the examples 
> folder of pyjamas for code that creates and manages UI.
> 
> On 11 September 2011 12:39, Richard Dijkstra  
> wrote:
> Carl,
> 
> Thank for the conceptual advise.
> Besides the examples is also a tutorial for pyjama -  web2py  available.
> 
> 
> Op 11 sep 2011, om 12:55 heeft Carl Roach het volgende geschreven: Or a brief 
> pyjama-w2p cookbook recipe like:
> - create database
> - create webpage thru pyjama
> - connect ... using ajax
> - ...
> 
> Would be convenient. I do not know whow wrote the pyjama example on web2py, 
> maybe he/she might give some tips.
> 
> 
>> The AJAX is the only 'bit' that is Web2py specific.
>> Your mental model will need to shift to "writing an application in Pyjamas 
>> rather than writing web pages". That applications, thru ajax can communicate 
>> with your Web2py instance.
>> 
>> On 11 September 2011 11:52, Richard Dijkstra  
>> wrote:
>> That example and the info hierarchy and tabs example are the widgets we will 
>> be using. Looks fine to us.
>> however I do not have a clear view on how pyjama is used within web2py. I 
>> have looked at the pyjamas example 
>> http://www.web2py.com/appliances/default/show/45 but I can't figure out what 
>> is specific pyjama besides the ajax code.
>> 
>> 
>> Op 11 sep 2011, om 12:37 heeft Carl het volgende geschreven:
>> 
>>> I would say it's worth a look for charts & graphs.
>>> Here's one example:
>>> http://pyjs.org/examples/gcharttestapp/output/GChartTestApp.html
>> 
>> 
> 
> 



Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Anthony,

Do you (and Massimo, I belief you are working closely together) have experience 
with Pyjama and web2py? I have only found a posting in 2009 when it all 
started. 

Richard D.


Op 11 sep 2011, om 13:50 heeft Richard Dijkstra het volgende geschreven:

> Carl,  
> 
> Thanx, we'll meet on linkedin.
> 
> Richard
> 
> Op 11 sep 2011, om 13:43 heeft Carl Roach het volgende geschreven:
> 
>> you might try asking for help here: 
>> http://www.linkedin.com/groups?gid=3634078&trk=hb_side_g
>> 
>> otherwise... work through the example of ajax and then look at the examples 
>> folder of pyjamas for code that creates and manages UI.
>> 
>> On 11 September 2011 12:39, Richard Dijkstra  
>> wrote:
>> Carl,
>> 
>> Thank for the conceptual advise.
>> Besides the examples is also a tutorial for pyjama -  web2py  available.
>> 
>> 
>> Op 11 sep 2011, om 12:55 heeft Carl Roach het volgende geschreven: Or a 
>> brief pyjama-w2p cookbook recipe like:
>> - create database
>> - create webpage thru pyjama
>> - connect ... using ajax
>> - ...
>> 
>> Would be convenient. I do not know whow wrote the pyjama example on web2py, 
>> maybe he/she might give some tips.
>> 
>> 
>>> The AJAX is the only 'bit' that is Web2py specific.
>>> Your mental model will need to shift to "writing an application in Pyjamas 
>>> rather than writing web pages". That applications, thru ajax can 
>>> communicate with your Web2py instance.
>>> 
>>> On 11 September 2011 11:52, Richard Dijkstra  
>>> wrote:
>>> That example and the info hierarchy and tabs example are the widgets we 
>>> will be using. Looks fine to us.
>>> however I do not have a clear view on how pyjama is used within web2py. I 
>>> have looked at the pyjamas example 
>>> http://www.web2py.com/appliances/default/show/45 but I can't figure out 
>>> what is specific pyjama besides the ajax code.
>>> 
>>> 
>>> Op 11 sep 2011, om 12:37 heeft Carl het volgende geschreven:
>>> 
>>>> I would say it's worth a look for charts & graphs.
>>>> Here's one example:
>>>> http://pyjs.org/examples/gcharttestapp/output/GChartTestApp.html
>>> 
>>> 
>> 
>> 
> 



Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Thanx, for the tip; we will update you on our progress.


Op 11 sep 2011, om 20:21 heeft Anthony het volgende geschreven:

> http://web2py.com/book/default/chapter/09#JSONRPC-and-Pyjamas



[web2py] Rpy2

2011-08-19 Thread Richard Dijkstra

Hello all,

Ofcourse a lot of math and statistics can be done by Python. Adding R to 
Python as a module through Rpy2 may make this complete. Is there any 
experience using Rpy2 within Web2py?


Regards,
Richard


Re: [web2py] embedded graphics

2011-08-23 Thread Richard Dijkstra

Richard,

Thanks. I have to figure out what this exact means because I am new to  
Web2py.
Important is the graphics device you use, which one is that Agg, Cairo 
or something else?


Richard


Op 23-8-2011 21:53, Richard Vézina schreef:

Hello Richard,

I think if I had to do what you want to do (I will have to do 
something similar soon) that I would use compute type field to 
generate my graph with lambda function base on orther field input data 
for processing and output from my lambda a graph under PNG image type 
and store the result in db or server directory upload.


I am more inclined into use Matplotlib since it is better fit since it 
is python lib (but nerver use Matplotlib)...


Also, if my processing become to complex for a lambda function, I will 
use internal function :


__functionName(input1, input2, etc.)

Function beginning by "__" are not expose to final user so they don't 
need decorator...


Hope this help.

Richard

On Tue, Aug 23, 2011 at 1:57 PM, Richard > wrote:


Hello,

I want to create a scientific website with embedded graphics on Mac
OS.
Plots are created through Rpy2 and Matplotlib.

All the modules run corretly on my Mac but what graphics type will
give me the embedded plots and where should I place relevant code
within the Web2py framework?

Thank you for your reply.

Richard




Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3830 - datum van uitgifte: 08/12/11 
20:34:00





Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Richard Dijkstra

Anthony, Richard,

Thank you for the feedback.

Getting the png file from the static area could be done, and how do I 
get the dynamically create file in that static area?

What would the output path be in :

grdevices.png(file="/tmp/rweb2output.png" , width=512, height=512)

Richard


Op 24-8-2011 16:37, Anthony schreef:

On Wednesday, August 24, 2011 8:29:11 AM UTC-4, Richard wrote:

 Here is the R output via a tmp png file
 obj text 


Since src is a relative url, it will end up being 
http://127.0.0.1:8000/tmp/rweb2output.png (assuming you're running on 
your local machine on the default port). Instead, put the file inside 
your application's 'static' folder (you can create a 'tmp' subfolder 
in there), and use src="{{=URL('static','tmp/rweb2output.png')}}". 
Also, use an  tag instead of .

Anthony


Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3830 - datum van uitgifte: 08/12/11 
20:34:00





Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Richard Dijkstra

Richard, Anthony,

You have sent me in the right direction; it works :)

Richard


Op 24-8-2011 18:09, Richard Vézina schreef:

Try this : URL('static','SUBFOLDER/FILENAME')

Richard

On Wed, Aug 24, 2011 at 11:55 AM, Richard Dijkstra 
mailto:richard.dijks...@planet.nl>> wrote:


Anthony, Richard,

Thank you for the feedback.

Getting the png file from the static area could be done, and how
do I get the dynamically create file in that static area?
What would the output path be in :

grdevices.png(file="/tmp/rweb2output.png" , width=512, height=512)

Richard


Op 24-8-2011 16:37, Anthony schreef:

On Wednesday, August 24, 2011 8:29:11 AM UTC-4, Richard wrote:

 Here is the R output via a tmp png file
 obj text 


Since src is a relative url, it will end up being
http://127.0.0.1:8000/tmp/rweb2output.png (assuming you're
running on your local machine on the default port). Instead, put
the file inside your application's 'static' folder (you can
create a 'tmp' subfolder in there), and use
src="{{=URL('static','tmp/rweb2output.png')}}". Also, use an
 tag instead of .
Anthony


Interne Virusdatabase is verouderd.
Gecontroleerd door AVG -www.avg.com  <http://www.avg.com>
Versie: 9.0.872 / Virusdatabase: 271.1.1/3830 - datum van uitgifte: 
08/12/11 20:34:00






Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.872 / Virusdatabase: 271.1.1/3830 - datum van uitgifte: 08/12/11 
20:34:00