Re: [sage-devel] Re: Femhub

2011-07-23 Thread Ondřej Čertík
On Fri, Jul 22, 2011 at 11:37 PM, Eviatar  wrote:
> I guess by "modular" I meant that the different components can be
> installed separately, which is not really the case with Sage (except
> with the extra spkgs). I like the all-in-one approach better anyways
> but, like you said, there is also an advantage in the specific-use
> approach, like Sympy, NumPy, etc.

It's all about the build system (that's why I wrote a new one), the
SPKG packages in Sage are perfectly modular.

Ondrej

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Femhub

2011-07-22 Thread Eviatar
I guess by "modular" I meant that the different components can be
installed separately, which is not really the case with Sage (except
with the extra spkgs). I like the all-in-one approach better anyways
but, like you said, there is also an advantage in the specific-use
approach, like Sympy, NumPy, etc.

On Jul 22, 9:01 pm, William Stein  wrote:
> On Fri, Jul 22, 2011 at 8:57 PM, Eviatar  wrote:
> > Oh, I see. It would be nice if Sage was more modular.
>
> > Good luck with Qsnake!
>
> And things like Qsnake are possible... because Python is very modular.
>
>  -- William
>
>
>
>
>
>
>
>
>
> > On Jul 22, 7:51 pm, Ondřej Čertík  wrote:
> >> On Fri, Jul 22, 2011 at 6:19 PM, William Stein  wrote:
> >> > On Fri, Jul 22, 2011 at 5:56 PM, Eviatar  wrote:
> >> >> Just out of curiosity: why are you forking a separate project instead
> >> >> of developing Sage?
>
> >> > I think the main issue is that Sage contains a lot of dependencies and
> >> > code that are not needed for people doing Finite Element Method (say)
> >> > work.  But nonetheless, there are useful ideas in how Sage is
> >> > constructed, which Ondrej's project also benefits from.
>
> >> Also so that we can quickly release a new version, update a package
> >> and so on. Also, what I did in Qsnake is that I wrote a completely
> >> new build system (in pure Python, as one simple file) and also I have
> >> added a lot of new packages, not in standard Sage.
> >> By doing it separately, I can simply create a version, that "just
> >> works". Plus I wanted to use git and github etc., as these tools make
> >> me a lot more productive (subjective reason).
>
> >> In any case, I have strictly stayed with the SPKG packages, so that
> >> any improvements (let's say after my new packages mature) can be
> >> incorporated in standard Sage, eventually.
>
> >> So I view it as simply organizing the work, rather than a competing fork.
>
> >> > As a related example, shortly after I started Sage (in 2005), Ondrej
> >> > started Sympy (in 2006), which does symbolic calculus.   At least for
> >> > a while, much of what Sympy did, one could do more quickly in Sage.
> >> > That said, I just went to the app store recently and downloaded a
> >> > program called PythonMath, which I find handy on occasion: it turns
> >> > out PythonMath is basically Python + Sympy, which is _vastly_ easier
> >> > to port to the iPhone than Sage.
>
> >> Yes. For the kind of math that I do, in daily research (electronic
> >> structure calculations and other quantum mechanics stuff), sympy
> >> always worked great, and having no other depenencies than Python, it
> >> was exactly what I always needed. For the kind of math that William
> >> does, Sage has always worked much better. Also, sympy is just a
> >> symbolic library (and that's it, so one has to use other libraries for
> >> plotting, numerics, notebook...), while Sage is everything.
>
> >> And thus the motivation for Qsnake --- to have a program, that
> >> contains everything and "just works". I would put Qsnake on the same
> >> level as psage:http://purple.sagemath.org/, if I understand the
> >> motivation of psage correctly, it's aim is also to eventually
> >> integrate the useful packages (once they mature from "research" to
> >> "production") into Sage. Looking here:
>
> >>http://purple.sagemath.org/goals.html
>
> >> That's pretty much the same motivation for Qsnake. Except that I need
> >> a different set of packages (and I need Fortran).
>
> >> Ideally, there would be a huge repository of SPKG packages (just like
> >> the huge repository that Ubuntu has, with almost everything), and one
> >> could quickly install just what one needs. So I am trying to figure
> >> this out too with Qsnake. But it's easier said than done.
>
> >> Ondrej
>
> > --
> > To post to this group, send an email to sage-devel@googlegroups.com
> > To unsubscribe from this group, send an email to 
> > sage-devel+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/sage-devel
> > URL:http://www.sagemath.org
>
> --
> William Stein
> Professor of Mathematics
> University of Washingtonhttp://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: Femhub

2011-07-22 Thread William Stein
On Fri, Jul 22, 2011 at 8:57 PM, Eviatar  wrote:
> Oh, I see. It would be nice if Sage was more modular.
>
> Good luck with Qsnake!

And things like Qsnake are possible... because Python is very modular.

 -- William

> On Jul 22, 7:51 pm, Ondřej Čertík  wrote:
>> On Fri, Jul 22, 2011 at 6:19 PM, William Stein  wrote:
>> > On Fri, Jul 22, 2011 at 5:56 PM, Eviatar  wrote:
>> >> Just out of curiosity: why are you forking a separate project instead
>> >> of developing Sage?
>>
>> > I think the main issue is that Sage contains a lot of dependencies and
>> > code that are not needed for people doing Finite Element Method (say)
>> > work.  But nonetheless, there are useful ideas in how Sage is
>> > constructed, which Ondrej's project also benefits from.
>>
>> Also so that we can quickly release a new version, update a package
>> and so on. Also, what I did in Qsnake is that I wrote a completely
>> new build system (in pure Python, as one simple file) and also I have
>> added a lot of new packages, not in standard Sage.
>> By doing it separately, I can simply create a version, that "just
>> works". Plus I wanted to use git and github etc., as these tools make
>> me a lot more productive (subjective reason).
>>
>> In any case, I have strictly stayed with the SPKG packages, so that
>> any improvements (let's say after my new packages mature) can be
>> incorporated in standard Sage, eventually.
>>
>> So I view it as simply organizing the work, rather than a competing fork.
>>
>>
>>
>> > As a related example, shortly after I started Sage (in 2005), Ondrej
>> > started Sympy (in 2006), which does symbolic calculus.   At least for
>> > a while, much of what Sympy did, one could do more quickly in Sage.
>> > That said, I just went to the app store recently and downloaded a
>> > program called PythonMath, which I find handy on occasion: it turns
>> > out PythonMath is basically Python + Sympy, which is _vastly_ easier
>> > to port to the iPhone than Sage.
>>
>> Yes. For the kind of math that I do, in daily research (electronic
>> structure calculations and other quantum mechanics stuff), sympy
>> always worked great, and having no other depenencies than Python, it
>> was exactly what I always needed. For the kind of math that William
>> does, Sage has always worked much better. Also, sympy is just a
>> symbolic library (and that's it, so one has to use other libraries for
>> plotting, numerics, notebook...), while Sage is everything.
>>
>> And thus the motivation for Qsnake --- to have a program, that
>> contains everything and "just works". I would put Qsnake on the same
>> level as psage:http://purple.sagemath.org/, if I understand the
>> motivation of psage correctly, it's aim is also to eventually
>> integrate the useful packages (once they mature from "research" to
>> "production") into Sage. Looking here:
>>
>> http://purple.sagemath.org/goals.html
>>
>> That's pretty much the same motivation for Qsnake. Except that I need
>> a different set of packages (and I need Fortran).
>>
>> Ideally, there would be a huge repository of SPKG packages (just like
>> the huge repository that Ubuntu has, with almost everything), and one
>> could quickly install just what one needs. So I am trying to figure
>> this out too with Qsnake. But it's easier said than done.
>>
>> Ondrej
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Femhub

2011-07-22 Thread Eviatar
Oh, I see. It would be nice if Sage was more modular.

Good luck with Qsnake!
On Jul 22, 7:51 pm, Ondřej Čertík  wrote:
> On Fri, Jul 22, 2011 at 6:19 PM, William Stein  wrote:
> > On Fri, Jul 22, 2011 at 5:56 PM, Eviatar  wrote:
> >> Just out of curiosity: why are you forking a separate project instead
> >> of developing Sage?
>
> > I think the main issue is that Sage contains a lot of dependencies and
> > code that are not needed for people doing Finite Element Method (say)
> > work.  But nonetheless, there are useful ideas in how Sage is
> > constructed, which Ondrej's project also benefits from.
>
> Also so that we can quickly release a new version, update a package
> and so on. Also, what I did in Qsnake is that I wrote a completely
> new build system (in pure Python, as one simple file) and also I have
> added a lot of new packages, not in standard Sage.
> By doing it separately, I can simply create a version, that "just
> works". Plus I wanted to use git and github etc., as these tools make
> me a lot more productive (subjective reason).
>
> In any case, I have strictly stayed with the SPKG packages, so that
> any improvements (let's say after my new packages mature) can be
> incorporated in standard Sage, eventually.
>
> So I view it as simply organizing the work, rather than a competing fork.
>
>
>
> > As a related example, shortly after I started Sage (in 2005), Ondrej
> > started Sympy (in 2006), which does symbolic calculus.   At least for
> > a while, much of what Sympy did, one could do more quickly in Sage.
> > That said, I just went to the app store recently and downloaded a
> > program called PythonMath, which I find handy on occasion: it turns
> > out PythonMath is basically Python + Sympy, which is _vastly_ easier
> > to port to the iPhone than Sage.
>
> Yes. For the kind of math that I do, in daily research (electronic
> structure calculations and other quantum mechanics stuff), sympy
> always worked great, and having no other depenencies than Python, it
> was exactly what I always needed. For the kind of math that William
> does, Sage has always worked much better. Also, sympy is just a
> symbolic library (and that's it, so one has to use other libraries for
> plotting, numerics, notebook...), while Sage is everything.
>
> And thus the motivation for Qsnake --- to have a program, that
> contains everything and "just works". I would put Qsnake on the same
> level as psage:http://purple.sagemath.org/, if I understand the
> motivation of psage correctly, it's aim is also to eventually
> integrate the useful packages (once they mature from "research" to
> "production") into Sage. Looking here:
>
> http://purple.sagemath.org/goals.html
>
> That's pretty much the same motivation for Qsnake. Except that I need
> a different set of packages (and I need Fortran).
>
> Ideally, there would be a huge repository of SPKG packages (just like
> the huge repository that Ubuntu has, with almost everything), and one
> could quickly install just what one needs. So I am trying to figure
> this out too with Qsnake. But it's easier said than done.
>
> Ondrej

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: Femhub

2011-07-22 Thread Ondřej Čertík
On Fri, Jul 22, 2011 at 6:19 PM, William Stein  wrote:
> On Fri, Jul 22, 2011 at 5:56 PM, Eviatar  wrote:
>> Just out of curiosity: why are you forking a separate project instead
>> of developing Sage?
>
> I think the main issue is that Sage contains a lot of dependencies and
> code that are not needed for people doing Finite Element Method (say)
> work.  But nonetheless, there are useful ideas in how Sage is
> constructed, which Ondrej's project also benefits from.

Also so that we can quickly release a new version, update a package
and so on. Also, what I did in Qsnake is that I wrote a completely
new build system (in pure Python, as one simple file) and also I have
added a lot of new packages, not in standard Sage.
By doing it separately, I can simply create a version, that "just
works". Plus I wanted to use git and github etc., as these tools make
me a lot more productive (subjective reason).

In any case, I have strictly stayed with the SPKG packages, so that
any improvements (let's say after my new packages mature) can be
incorporated in standard Sage, eventually.

So I view it as simply organizing the work, rather than a competing fork.

>
> As a related example, shortly after I started Sage (in 2005), Ondrej
> started Sympy (in 2006), which does symbolic calculus.   At least for
> a while, much of what Sympy did, one could do more quickly in Sage.
> That said, I just went to the app store recently and downloaded a
> program called PythonMath, which I find handy on occasion: it turns
> out PythonMath is basically Python + Sympy, which is _vastly_ easier
> to port to the iPhone than Sage.

Yes. For the kind of math that I do, in daily research (electronic
structure calculations and other quantum mechanics stuff), sympy
always worked great, and having no other depenencies than Python, it
was exactly what I always needed. For the kind of math that William
does, Sage has always worked much better. Also, sympy is just a
symbolic library (and that's it, so one has to use other libraries for
plotting, numerics, notebook...), while Sage is everything.

And thus the motivation for Qsnake --- to have a program, that
contains everything and "just works". I would put Qsnake on the same
level as psage: http://purple.sagemath.org/, if I understand the
motivation of psage correctly, it's aim is also to eventually
integrate the useful packages (once they mature from "research" to
"production") into Sage. Looking here:

http://purple.sagemath.org/goals.html

That's pretty much the same motivation for Qsnake. Except that I need
a different set of packages (and I need Fortran).

Ideally, there would be a huge repository of SPKG packages (just like
the huge repository that Ubuntu has, with almost everything), and one
could quickly install just what one needs. So I am trying to figure
this out too with Qsnake. But it's easier said than done.

Ondrej

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: Femhub

2011-07-22 Thread William Stein
On Fri, Jul 22, 2011 at 5:56 PM, Eviatar  wrote:
> Just out of curiosity: why are you forking a separate project instead
> of developing Sage?

I think the main issue is that Sage contains a lot of dependencies and
code that are not needed for people doing Finite Element Method (say)
work.  But nonetheless, there are useful ideas in how Sage is
constructed, which Ondrej's project also benefits from.

As a related example, shortly after I started Sage (in 2005), Ondrej
started Sympy (in 2006), which does symbolic calculus.   At least for
a while, much of what Sympy did, one could do more quickly in Sage.
That said, I just went to the app store recently and downloaded a
program called PythonMath, which I find handy on occasion: it turns
out PythonMath is basically Python + Sympy, which is _vastly_ easier
to port to the iPhone than Sage.

>
> On Jul 22, 2:35 pm, Ondřej Čertík  wrote:
>> Hi Thierry,
>>
>> On Thu, Jul 21, 2011 at 10:21 PM, Thierry Dumont
>>
>>  wrote:
>> > Hello,
>>
>> > I juts read that Femhub (http://code.google.com/p/femhub/and many other
>> > urls) uses parts of Sage. But is there any project to integrate it in the
>> > Sage distribution (as optional package, for example) ?
>>
>> > This would be interesting for teaching...
>>
>> I did most of the work on femhub, i.e. from the femhub git repository:
>>
>> $ git shortlog -ns
>>   275  Ondrej Certik
>>    84  Sameer Regmi
>>     4  Pavel Solin
>>     3  Brian E. Granger
>>     1  Aayush Poudel
>>     1  Robert Cimrman
>>     1  root
>>
>> But I am not involved with the project anymore due to irreconcilable
>> differences with other owners of the project (I have been, among other
>> things, removed from the github groups and mailinglists against my
>> will --- but I don't want to discuss this on the public mailinglist,
>> feel free to send me a private email though). As such, I have started
>> a new project:
>>
>> http://qsnake.com/
>>
>> And I'll be happy to integrate things back to Sage. I didn't announce
>> the Qsnake project publicly yet, because I am not happy with the web
>> pages yet, but I am currently busy finishing some work, and I'll get
>> to it probably at the end of the summer again.
>>
>> Which exact things are you interested in integrating back? I'll be
>> happy to discuss it more.
>>
>> Ondrej
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Femhub

2011-07-22 Thread Eviatar
Just out of curiosity: why are you forking a separate project instead
of developing Sage?

On Jul 22, 2:35 pm, Ondřej Čertík  wrote:
> Hi Thierry,
>
> On Thu, Jul 21, 2011 at 10:21 PM, Thierry Dumont
>
>  wrote:
> > Hello,
>
> > I juts read that Femhub (http://code.google.com/p/femhub/and many other
> > urls) uses parts of Sage. But is there any project to integrate it in the
> > Sage distribution (as optional package, for example) ?
>
> > This would be interesting for teaching...
>
> I did most of the work on femhub, i.e. from the femhub git repository:
>
> $ git shortlog -ns
>   275  Ondrej Certik
>    84  Sameer Regmi
>     4  Pavel Solin
>     3  Brian E. Granger
>     1  Aayush Poudel
>     1  Robert Cimrman
>     1  root
>
> But I am not involved with the project anymore due to irreconcilable
> differences with other owners of the project (I have been, among other
> things, removed from the github groups and mailinglists against my
> will --- but I don't want to discuss this on the public mailinglist,
> feel free to send me a private email though). As such, I have started
> a new project:
>
> http://qsnake.com/
>
> And I'll be happy to integrate things back to Sage. I didn't announce
> the Qsnake project publicly yet, because I am not happy with the web
> pages yet, but I am currently busy finishing some work, and I'll get
> to it probably at the end of the summer again.
>
> Which exact things are you interested in integrating back? I'll be
> happy to discuss it more.
>
> Ondrej

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: [femhub] Re: adjusting versions and using/abusing FEMHUB

2010-02-17 Thread William Stein
On Wed, Feb 17, 2010 at 11:47 AM, Ondrej Certik  wrote:
> On Wed, Feb 17, 2010 at 11:34 AM, Ethan Coon  wrote:
>> Ok, so I uploaded an spkg, but it's not exactly right yet.  A few issues:
>>
>> 1. my stupidity -- the flag should actually be --FLIBS="f95" , not
>> --FFLAGS="-lf95*".  This isn't necessary to get a working PETSc and
>> petsc4py, but it is both more correct and necessary when you start
>> adding on additional libraries to PETSc (like Hypre/ML/Trilinos/etc)
>> that also need linked.  I'll fix this and upload a new package in the
>> next few hours (still testing the full installation with all bells and
>> whistles).
>
> Thanks!
>
>>
>> 2. I'm not exactly sure what fortran compilers are used with Sage.  In
>> my default installation, it used g95, so the necessary library to
>> include is libf95.a.  Is there ever a case where this should actually
>> be libgfortran.so?  Or are there different names for pgi fortran
>> libraries?  I'm not that familiar with this whole multi-platform game,
>> so I'm leaving it at libf95 for now, but holler if we need to work out
>> some name-mangling with which_fortran to get the right library linked.
>
> Yes, I am not so familiar with this either. CCing sage-devel, maybe
> someone could help us over there.
>
> Ondrej
>

We ship g95 on OS X.  On all other platforms we require that gfortran
be installed, or that the user set the SAGE_FORTRAN environment
variable.

When I build binaries, I copy libgfortran.so into local/lib/.

William

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: [femhub] Re: adjusting versions and using/abusing FEMHUB

2010-02-17 Thread Ondrej Certik
On Wed, Feb 17, 2010 at 11:34 AM, Ethan Coon  wrote:
> Ok, so I uploaded an spkg, but it's not exactly right yet.  A few issues:
>
> 1. my stupidity -- the flag should actually be --FLIBS="f95" , not
> --FFLAGS="-lf95*".  This isn't necessary to get a working PETSc and
> petsc4py, but it is both more correct and necessary when you start
> adding on additional libraries to PETSc (like Hypre/ML/Trilinos/etc)
> that also need linked.  I'll fix this and upload a new package in the
> next few hours (still testing the full installation with all bells and
> whistles).

Thanks!

>
> 2. I'm not exactly sure what fortran compilers are used with Sage.  In
> my default installation, it used g95, so the necessary library to
> include is libf95.a.  Is there ever a case where this should actually
> be libgfortran.so?  Or are there different names for pgi fortran
> libraries?  I'm not that familiar with this whole multi-platform game,
> so I'm leaving it at libf95 for now, but holler if we need to work out
> some name-mangling with which_fortran to get the right library linked.

Yes, I am not so familiar with this either. CCing sage-devel, maybe
someone could help us over there.

Ondrej

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: [femhub] Re: "sage: An error occurred while installing python_gnutls-1.1.4.p6"

2009-11-05 Thread Ondrej Certik

On Thu, Nov 5, 2009 at 3:46 PM, Sameer  wrote:
>
> So, as suggested by Ondrej, I removed the r-2.9.2 package which is not
> needed for FEMhub and then the Sage build was successful. That means
> there may be something wrong in our FMMhub version, I think.

Ok, great. So Sage works fine (up to the build bug in R).

So please attach both  the Sage install.log file and the femhub log
file. Let's compare them. Be sure to gzip them first, then it's just
couple kb.

Ondrej

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Ondrej Certik

On Thu, Sep 24, 2009 at 1:49 PM, William Stein  wrote:
>
> On Thu, Sep 24, 2009 at 1:25 PM, Pavel Solin  wrote:
>> Hi,
>>   thanks for many useful hints.
>>
>> On Thu, Sep 24, 2009 at 3:33 AM, William Stein  wrote:
>>>
>>> On Thu, Sep 24, 2009 at 3:05 AM, Ondrej Certik  wrote:
>>> >
>>> > Hi Pavel,
>>> >
>>> > thanks a lot for the feedback on the notebook. I think every single
>>> > point that you raised annoys me too and it should be fixed.
>>>
>>> I fully agree.  In the meantime, I did list a few workarounds for some
>>> of the issues you have below, which you might find helpful.
>>>
>>> >
>>> > On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin  wrote:
>>> >> Hi,
>>> >>   by now I spent many hours with programming inside the
>>> >> web notebook, so here are some suggestions how to make
>>> >> this kind of work more pleasant:
>>> >>
>>> >> (1) Coloring source code would help a lot.
>>>
>>> We implemented this before and it was way too slow.  We should try again.
>>
>> Of course one can live without it, but the look&feel matters. I am using
>> the web notebook virtually in every class of a numerical methods course.
>
> Some people did some test yesterday and concluded that highlighting
> should definitely be doable now.   It's now "highlighted" on my list.
>
>> A few sample worksheets are here:
>>
>> http://nb.femhub.org/home/pub/45
>> http://nb.femhub.org/home/pub/43
>> http://nb.femhub.org/home/pub/44
>> http://nb.femhub.org/home/pub/41
>> http://nb.femhub.org/home/pub/34
>> http://nb.femhub.org/home/pub/37
>> http://nb.femhub.org/home/pub/39
>> http://nb.femhub.org/home/pub/33
>>
>> So far the students do not have to do homeworks in the
>> notebook yet, but I would like to change it soon.
>>
>>>
>>> >> (2) Saving worksheets is cumbersome, there should be
>>> >>   a possibility to save all user's worksheets at once.
>>>
>>> This is implemented, but not turned on by default because it locks the
>>> server temporarily.
>>>
>>> >> (3) When image is saved and latex some text written to output, the
>>> >>       image anyway appears after the text. So one does not
>>> >>       have an opportunity to create a sequence of images
>>> >>       with some text description below each of them. This should
>>> >>       be fixed.
>>>
>>> There is a way to do this but it's not trivially straightforward yet.
>>> (you have to use  and then you can
>>> put images anywhere using arbitrary html).
>>>
>>> There is also a graphics_array command for laying out images.
>>>
>>> >> (4) If the program becomes longer, it is cumbersome to
>>> >>   scroll down to the "evaluate" button, then look at the output,
>>> >>   then scroll a long way up again to fix a minor issue, and
>>> >>   repeat the whole process. Most of the time, one only works on
>>> >>   one function but needs to scroll through the text of all the
>>> >>   other ones too. It would help a lot to be able to collapse
>>> >>   functions which are not being edited at the moment (but
>>> >>   they still would be evaluated all together).
>>>
>>> 1. Use shift-enter instead of clicking Evaluate.
>>> 2. Use %hide at the top of a cell to collapse it.
>>>
>>> Of course it would be nice to have a collapse button.
>>
>> But then one would have to evaluate the cells separately, right?
>> Imagine that you have 8 functions in 8 different cells. Perhaps
>> I am missing something and one can evaluate multiple cells
>> at once.
>
> No, you're exactly right.  I'm only mentioning some partial workaround
> for right now.  At this point in time, the more features you request
> the better!
>
>>
>>>
>>> >> (5) Undo was already discussed, this functionality is much needed.
>>>
>>> What kind of undo do you want?  There is a snapshot every few minutes,
>>> and you can undo in any given input cell, since the browser provides
>>> that for any textarea.
>>
>> Do you know Emacs? Anything closer to it would be great.
>
> Yes, I know Emacs well. I personally use Firefox webapps (mainly gmail
> and the sage notebook) half the time and Emacs the other half the
> time.   I really love emacs -- it's a work of brilliance.

In my case I would say that I use firefox webapps 50% and terminal in
the other 50% (e.g. bash, vim, make, etc.).

I almost never use any other application.

So I think it's clear where this is all going -- moving the terminal
like experience into the browser. Which ultimately is way more
powerful in some sense (images, equations, fonts, look & feel, links
to documentation/web), yet very incapable in some other sense so far:
the notebook cell editor has to be improved and maybe some other
things:

I often like to execute simple python scripts, that for example
compile webpages using jinja (or sphinx) or do some sympy calculation,
etc. And keep them around. So this workflow maybe translates into
being able to easily run worksheets I guess.

I don't know if we should even try to translate the whole python
development to the web, e.g. being able to create a module

[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread William Stein

On Thu, Sep 24, 2009 at 1:25 PM, Pavel Solin  wrote:
> Hi,
>   thanks for many useful hints.
>
> On Thu, Sep 24, 2009 at 3:33 AM, William Stein  wrote:
>>
>> On Thu, Sep 24, 2009 at 3:05 AM, Ondrej Certik  wrote:
>> >
>> > Hi Pavel,
>> >
>> > thanks a lot for the feedback on the notebook. I think every single
>> > point that you raised annoys me too and it should be fixed.
>>
>> I fully agree.  In the meantime, I did list a few workarounds for some
>> of the issues you have below, which you might find helpful.
>>
>> >
>> > On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin  wrote:
>> >> Hi,
>> >>   by now I spent many hours with programming inside the
>> >> web notebook, so here are some suggestions how to make
>> >> this kind of work more pleasant:
>> >>
>> >> (1) Coloring source code would help a lot.
>>
>> We implemented this before and it was way too slow.  We should try again.
>
> Of course one can live without it, but the look&feel matters. I am using
> the web notebook virtually in every class of a numerical methods course.

Some people did some test yesterday and concluded that highlighting
should definitely be doable now.   It's now "highlighted" on my list.

> A few sample worksheets are here:
>
> http://nb.femhub.org/home/pub/45
> http://nb.femhub.org/home/pub/43
> http://nb.femhub.org/home/pub/44
> http://nb.femhub.org/home/pub/41
> http://nb.femhub.org/home/pub/34
> http://nb.femhub.org/home/pub/37
> http://nb.femhub.org/home/pub/39
> http://nb.femhub.org/home/pub/33
>
> So far the students do not have to do homeworks in the
> notebook yet, but I would like to change it soon.
>
>>
>> >> (2) Saving worksheets is cumbersome, there should be
>> >>   a possibility to save all user's worksheets at once.
>>
>> This is implemented, but not turned on by default because it locks the
>> server temporarily.
>>
>> >> (3) When image is saved and latex some text written to output, the
>> >>       image anyway appears after the text. So one does not
>> >>       have an opportunity to create a sequence of images
>> >>       with some text description below each of them. This should
>> >>       be fixed.
>>
>> There is a way to do this but it's not trivially straightforward yet.
>> (you have to use  and then you can
>> put images anywhere using arbitrary html).
>>
>> There is also a graphics_array command for laying out images.
>>
>> >> (4) If the program becomes longer, it is cumbersome to
>> >>   scroll down to the "evaluate" button, then look at the output,
>> >>   then scroll a long way up again to fix a minor issue, and
>> >>   repeat the whole process. Most of the time, one only works on
>> >>   one function but needs to scroll through the text of all the
>> >>   other ones too. It would help a lot to be able to collapse
>> >>   functions which are not being edited at the moment (but
>> >>   they still would be evaluated all together).
>>
>> 1. Use shift-enter instead of clicking Evaluate.
>> 2. Use %hide at the top of a cell to collapse it.
>>
>> Of course it would be nice to have a collapse button.
>
> But then one would have to evaluate the cells separately, right?
> Imagine that you have 8 functions in 8 different cells. Perhaps
> I am missing something and one can evaluate multiple cells
> at once.

No, you're exactly right.  I'm only mentioning some partial workaround
for right now.  At this point in time, the more features you request
the better!

>
>>
>> >> (5) Undo was already discussed, this functionality is much needed.
>>
>> What kind of undo do you want?  There is a snapshot every few minutes,
>> and you can undo in any given input cell, since the browser provides
>> that for any textarea.
>
> Do you know Emacs? Anything closer to it would be great.

Yes, I know Emacs well. I personally use Firefox webapps (mainly gmail
and the sage notebook) half the time and Emacs the other half the
time.   I really love emacs -- it's a work of brilliance.

>> >> (6) The default graphical resolution of images is not too good.
>> >>   It would be nice to have some handle on it, as well as on their
>> >>   size and position in the browser. It should be possible to
>> >>   put several of them next to each other horizontally, etc.
>> >>   Perhaps this is possible and I just do not know how to do it.
>>
>> In Sage at least, you can use the figsize option to show to adjust this.
>> One also output in svg format.
>>
>> >> (7) I have now approx. 8 different worksheets for elementary
>> >>   numerical methods and there will be (hopefully many) more.
>> >>   It would be useful for me to compose my private "library" from
>> >>   which I could then import any of them in the same way as things
>> >>   are imported from sympy, numpy etc. This would greatly
>> >>       facilitate classroom demonstrations.
>>
>> I agree. How do you envision doing this.
>
> I am refering to the web notebook. It would have a Libraries button that
> would show my existing libraries,

[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Nick Alexander

>  * More of a python import thing.  In this scenario, each worksheet  
> has
> an optional filename.  If you use python to "import
> some_other_worksheet", the path is set up such that the normal python
> import mechanism works.  This gives you all of the normal python
> namespace mechanisms.  To enable this, it makes sense to have an
> some_other_worksheet.py file automatically created by concatenating  
> the
> input cells together whenever the some_other_worksheet is saved.   
> All of
> these files can be placed in a special directory that is added to the
> import path for the notebook user.

I think this sounds like a reasonable place to start.

Nick

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Jason Grout

William Stein wrote:
>>> (3) When image is saved and latex some text written to output, the
>>>   image anyway appears after the text. So one does not
>>>   have an opportunity to create a sequence of images
>>>   with some text description below each of them. This should
>>>   be fixed.
> 
> There is a way to do this but it's not trivially straightforward yet.
> (you have to use  and then you can
> put images anywhere using arbitrary html).


It's easier now; a while ago, the "show" command was enhanced so the 
following works like you expect (i.e., "after pic" appears after the 
picture).  This was initially done to get pictures in html.table to work 
correctly.

print "before pic"
show(plot(x^2,(x,0,1)))
print "after pic"


>>> (6) The default graphical resolution of images is not too good.
>>>   It would be nice to have some handle on it, as well as on their
>>>   size and position in the browser. It should be possible to
>>>   put several of them next to each other horizontally, etc.


You can use graphics_array, or html.table:

html.table([[plot(sin(a*x), (x, 0, pi),figsize=1) for a in [1..3]]])


graphics_array([[plot(sin(a*x), (x, 0, pi),figsize=1) for a in [1..3]]])



>>>   Perhaps this is possible and I just do not know how to do it.
> 
> In Sage at least, you can use the figsize option to show to adjust this.
> One also output in svg format.


Yep:

p=plot(x^2,(x,0,1))
p.save('test.svg')





> 
>>> (7) I have now approx. 8 different worksheets for elementary
>>>   numerical methods and there will be (hopefully many) more.
>>>   It would be useful for me to compose my private "library" from
>>>   which I could then import any of them in the same way as things
>>>   are imported from sympy, numpy etc. This would greatly
>>>   facilitate classroom demonstrations.
> 
> I agree. How do you envision doing this.

Having libraries is a very long-standing request for the notebook.

Here are two ways:

  * A graphical "dependency" editor, which lets you select worksheets 
from your notebook that the current worksheet depends on.  I'm imagining 
a tab on the top which pulls up a list of all available worksheets with 
checkboxes next to them.  You select which one you want, and hit a 
button to say that your current worksheet depends on the selected 
worksheets.  These worksheets are then automatically evaluated before 
evaluating the first cell of the current worksheet (so that it works 
when you restart the worksheet, etc.)

  * More of a python import thing.  In this scenario, each worksheet has 
an optional filename.  If you use python to "import 
some_other_worksheet", the path is set up such that the normal python 
import mechanism works.  This gives you all of the normal python 
namespace mechanisms.  To enable this, it makes sense to have an 
some_other_worksheet.py file automatically created by concatenating the 
input cells together whenever the some_other_worksheet is saved.  All of 
these files can be placed in a special directory that is added to the 
import path for the notebook user.

Jason

-- 
Jason Grout


--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread M. Yurko

That editor seemed as fast as the native text area to me. I am also
using firefox 3.5.2 so it could be quite browser dependent.

On Sep 24, 7:11 am, William Stein  wrote:
> On Thu, Sep 24, 2009 at 3:57 AM, Tim Joseph Dumol  wrote:
>
> > Regarding syntax highlighting, I just found a list on wikipedia of editors
> > we can use:
>
> >http://en.wikipedia.org/wiki/Comparison_of_Javascript-based_source_co...
>
> > CodeMirror (http://marijn.haverbeke.nl/codemirror/) seems to be the most
> > promising. Here's the demo:
> >http://marijn.haverbeke.nl/codemirror/contrib/python/index.html. EditArea is
> > also good, and comes with i18n:
> >http://www.cdolivet.com/index.php?page=editArea&sess=6ef80ec2026659ce
> > Demo:http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html.
>
> > What do you guys think?
>
> I just  triedhttp://marijn.haverbeke.nl/codemirror/contrib/python/index.html
> and it feel pretty slow to me compared to a normal text area.  What do
> you think?    Why are these slow?
>
> William
--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Tim Joseph Dumol
I don't notice any difference of speed (I'm on Firefox 3.5.2, btw.) It seems
that the editor works as an iframe in the document (that's how FCKEditor
(now CKEditor) works, too). The DOM traversal to add elements can be slow, I
guess. I haven't read the source code (I'll take a peek at it later) though.

BeSpin bypasses the issue of DOM traversal by implementing *everything* in
an HTML  element:
http://ajaxian.com/archives/canvas-for-a-text-editor. It's basically drawing
directly on the screen, so it's *very* fast, save for some bugs/issues.

On Thu, Sep 24, 2009 at 7:11 PM, William Stein  wrote:

>
> On Thu, Sep 24, 2009 at 3:57 AM, Tim Joseph Dumol 
> wrote:
> > Regarding syntax highlighting, I just found a list on wikipedia of
> editors
> > we can use:
> >
> >
> http://en.wikipedia.org/wiki/Comparison_of_Javascript-based_source_code_editors
> >
> > CodeMirror (http://marijn.haverbeke.nl/codemirror/) seems to be the most
> > promising. Here's the demo:
> > http://marijn.haverbeke.nl/codemirror/contrib/python/index.html.
> EditArea is
> > also good, and comes with i18n:
> >
> http://www.cdolivet.com/index.php?page=editArea&sess=6ef80ec2026659ce741a8ec0f9b36605
> .
> > Demo:
> http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html.
> >
> > What do you guys think?
>
> I just  tried
> http://marijn.haverbeke.nl/codemirror/contrib/python/index.html
> and it feel pretty slow to me compared to a normal text area.  What do
> you think?Why are these slow?
>
> William
>
> >
>


-- 
Tim Joseph Dumol 

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread William Stein

On Thu, Sep 24, 2009 at 3:57 AM, Tim Joseph Dumol  wrote:
> Regarding syntax highlighting, I just found a list on wikipedia of editors
> we can use:
>
> http://en.wikipedia.org/wiki/Comparison_of_Javascript-based_source_code_editors
>
> CodeMirror (http://marijn.haverbeke.nl/codemirror/) seems to be the most
> promising. Here's the demo:
> http://marijn.haverbeke.nl/codemirror/contrib/python/index.html. EditArea is
> also good, and comes with i18n:
> http://www.cdolivet.com/index.php?page=editArea&sess=6ef80ec2026659ce741a8ec0f9b36605.
> Demo: http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html.
>
> What do you guys think?

I just  tried http://marijn.haverbeke.nl/codemirror/contrib/python/index.html
and it feel pretty slow to me compared to a normal text area.  What do
you think?Why are these slow?

William

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Tim Joseph Dumol
Regarding syntax highlighting, I just found a list on wikipedia of editors
we can use:

http://en.wikipedia.org/wiki/Comparison_of_Javascript-based_source_code_editors

CodeMirror (http://marijn.haverbeke.nl/codemirror/) seems to be the most
promising. Here's the demo:
http://marijn.haverbeke.nl/codemirror/contrib/python/index.html. EditArea is
also good, and comes with i18n:
http://www.cdolivet.com/index.php?page=editArea&sess=6ef80ec2026659ce741a8ec0f9b36605.
Demo: http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html.

What do you guys think?

On Thu, Sep 24, 2009 at 6:33 PM, William Stein  wrote:

>
> On Thu, Sep 24, 2009 at 3:05 AM, Ondrej Certik  wrote:
> >
> > Hi Pavel,
> >
> > thanks a lot for the feedback on the notebook. I think every single
> > point that you raised annoys me too and it should be fixed.
>
> I fully agree.  In the meantime, I did list a few workarounds for some
> of the issues you have below, which you might find helpful.
>
> >
> > On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin  wrote:
> >> Hi,
> >>   by now I spent many hours with programming inside the
> >> web notebook, so here are some suggestions how to make
> >> this kind of work more pleasant:
> >>
> >> (1) Coloring source code would help a lot.
>
> We implemented this before and it was way too slow.  We should try again.
>
> >> (2) Saving worksheets is cumbersome, there should be
> >>   a possibility to save all user's worksheets at once.
>
> This is implemented, but not turned on by default because it locks the
> server temporarily.
>
> >> (3) When image is saved and latex some text written to output, the
> >>   image anyway appears after the text. So one does not
> >>   have an opportunity to create a sequence of images
> >>   with some text description below each of them. This should
> >>   be fixed.
>
> There is a way to do this but it's not trivially straightforward yet.
> (you have to use  and then you can
> put images anywhere using arbitrary html).
>
> There is also a graphics_array command for laying out images.
>
> >> (4) If the program becomes longer, it is cumbersome to
> >>   scroll down to the "evaluate" button, then look at the output,
> >>   then scroll a long way up again to fix a minor issue, and
> >>   repeat the whole process. Most of the time, one only works on
> >>   one function but needs to scroll through the text of all the
> >>   other ones too. It would help a lot to be able to collapse
> >>   functions which are not being edited at the moment (but
> >>   they still would be evaluated all together).
>
> 1. Use shift-enter instead of clicking Evaluate.
> 2. Use %hide at the top of a cell to collapse it.
>
> Of course it would be nice to have a collapse button.
>
> >> (5) Undo was already discussed, this functionality is much needed.
>
> What kind of undo do you want?  There is a snapshot every few minutes,
> and you can undo in any given input cell, since the browser provides
> that for any textarea.
>
> >> (6) The default graphical resolution of images is not too good.
> >>   It would be nice to have some handle on it, as well as on their
> >>   size and position in the browser. It should be possible to
> >>   put several of them next to each other horizontally, etc.
> >>   Perhaps this is possible and I just do not know how to do it.
>
> In Sage at least, you can use the figsize option to show to adjust this.
> One also output in svg format.
>
> >> (7) I have now approx. 8 different worksheets for elementary
> >>   numerical methods and there will be (hopefully many) more.
> >>   It would be useful for me to compose my private "library" from
> >>   which I could then import any of them in the same way as things
> >>   are imported from sympy, numpy etc. This would greatly
> >>   facilitate classroom demonstrations.
>
> I agree. How do you envision doing this.
>
> >>
> >> Best,
> >>
> >> Pavel
> >>
> >> --
> >> Pavel Solin
> >> University of Nevada, Reno
> >> http://hpfem.math.unr.edu/people/pavel/
> >> Hermes project: http://hpfem.org/
> >> FEMhub project: http://femhub.org/
> >>
> >> >
> >>
> >
> > >
> >
>
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>
> >
>


-- 
Tim Joseph Dumol 

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread William Stein

On Thu, Sep 24, 2009 at 3:05 AM, Ondrej Certik  wrote:
>
> Hi Pavel,
>
> thanks a lot for the feedback on the notebook. I think every single
> point that you raised annoys me too and it should be fixed.

I fully agree.  In the meantime, I did list a few workarounds for some
of the issues you have below, which you might find helpful.

>
> On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin  wrote:
>> Hi,
>>   by now I spent many hours with programming inside the
>> web notebook, so here are some suggestions how to make
>> this kind of work more pleasant:
>>
>> (1) Coloring source code would help a lot.

We implemented this before and it was way too slow.  We should try again.

>> (2) Saving worksheets is cumbersome, there should be
>>   a possibility to save all user's worksheets at once.

This is implemented, but not turned on by default because it locks the
server temporarily.

>> (3) When image is saved and latex some text written to output, the
>>       image anyway appears after the text. So one does not
>>       have an opportunity to create a sequence of images
>>       with some text description below each of them. This should
>>       be fixed.

There is a way to do this but it's not trivially straightforward yet.
(you have to use  and then you can
put images anywhere using arbitrary html).

There is also a graphics_array command for laying out images.

>> (4) If the program becomes longer, it is cumbersome to
>>   scroll down to the "evaluate" button, then look at the output,
>>   then scroll a long way up again to fix a minor issue, and
>>   repeat the whole process. Most of the time, one only works on
>>   one function but needs to scroll through the text of all the
>>   other ones too. It would help a lot to be able to collapse
>>   functions which are not being edited at the moment (but
>>   they still would be evaluated all together).

1. Use shift-enter instead of clicking Evaluate.
2. Use %hide at the top of a cell to collapse it.

Of course it would be nice to have a collapse button.

>> (5) Undo was already discussed, this functionality is much needed.

What kind of undo do you want?  There is a snapshot every few minutes,
and you can undo in any given input cell, since the browser provides
that for any textarea.

>> (6) The default graphical resolution of images is not too good.
>>   It would be nice to have some handle on it, as well as on their
>>   size and position in the browser. It should be possible to
>>   put several of them next to each other horizontally, etc.
>>   Perhaps this is possible and I just do not know how to do it.

In Sage at least, you can use the figsize option to show to adjust this.
One also output in svg format.

>> (7) I have now approx. 8 different worksheets for elementary
>>   numerical methods and there will be (hopefully many) more.
>>   It would be useful for me to compose my private "library" from
>>   which I could then import any of them in the same way as things
>>   are imported from sympy, numpy etc. This would greatly
>>       facilitate classroom demonstrations.

I agree. How do you envision doing this.

>>
>> Best,
>>
>> Pavel
>>
>> --
>> Pavel Solin
>> University of Nevada, Reno
>> http://hpfem.math.unr.edu/people/pavel/
>> Hermes project: http://hpfem.org/
>> FEMhub project: http://femhub.org/
>>
>> >
>>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Tim Joseph Dumol
On Thu, Sep 24, 2009 at 6:05 PM, Ondrej Certik  wrote:

>
> Hi Pavel,
>
> thanks a lot for the feedback on the notebook. I think every single
> point that you raised annoys me too and it should be fixed.
>
> I have also CCed sage-devel.
>
> Ondrej
>
> On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin  wrote:
> > Hi,
> >   by now I spent many hours with programming inside the
> > web notebook, so here are some suggestions how to make
> > this kind of work more pleasant:
> >
> > (1) Coloring source code would help a lot.
>

This was explored before, I believe, and found too slow. I think this merits
a bit of looking into again, though, since Javascript engines have sped up
by a lot recently. I'm sure we can take some inspiration from Bespin (
http://bespin.mozilla.com).


> > (2) Saving worksheets is cumbersome, there should be
> >   a possibility to save all user's worksheets at once.
>

+1.


> > (3) When image is saved and latex some text written to output, the
> >   image anyway appears after the text. So one does not
> >   have an opportunity to create a sequence of images
> >   with some text description below each of them. This should
> >   be fixed.
>

I'm not certain I understand this.


> > (4) If the program becomes longer, it is cumbersome to
> >   scroll down to the "evaluate" button, then look at the output,
> >   then scroll a long way up again to fix a minor issue, and
> >   repeat the whole process. Most of the time, one only works on
> >   one function but needs to scroll through the text of all the
> >   other ones too. It would help a lot to be able to collapse
> >   functions which are not being edited at the moment (but
> >   they still would be evaluated all together).
>

Code folding, then? There is a workaround for this: placing each function
into its own cell, which is what I do. Although yeah, this would be handy.
Once again, Bespin can serve as inspiration. +1.


> > (5) Undo was already discussed, this functionality is much needed.
>

This is partially fulfilled by auto-save + revisions, although I believe
William is working on improvements on that. Well, +1.


> > (6) The default graphical resolution of images is not too good.
> >   It would be nice to have some handle on it, as well as on their
> >   size and position in the browser. It should be possible to
> >   put several of them next to each other horizontally, etc.
> >   Perhaps this is possible and I just do not know how to do it.
>

+1. I think matplotlib can output SVG files (can someone confirm?), so maybe
we should use them instead.


> > (7) I have now approx. 8 different worksheets for elementary
> >   numerical methods and there will be (hopefully many) more.
> >   It would be useful for me to compose my private "library" from
> >   which I could then import any of them in the same way as things
> >   are imported from sympy, numpy etc. This would greatly
> >   facilitate classroom demonstrations.


+oo.


> >
> > Best,
> >
> > Pavel
> >
> > --
> > Pavel Solin
> > University of Nevada, Reno
> > http://hpfem.math.unr.edu/people/pavel/
> > Hermes project: http://hpfem.org/
> > FEMhub project: http://femhub.org/
> >
> > >
> >
>
> >
>


-- 
Tim Joseph Dumol 

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Ondrej Certik

Hi Pavel,

thanks a lot for the feedback on the notebook. I think every single
point that you raised annoys me too and it should be fixed.

I have also CCed sage-devel.

Ondrej

On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin  wrote:
> Hi,
>   by now I spent many hours with programming inside the
> web notebook, so here are some suggestions how to make
> this kind of work more pleasant:
>
> (1) Coloring source code would help a lot.
> (2) Saving worksheets is cumbersome, there should be
>   a possibility to save all user's worksheets at once.
> (3) When image is saved and latex some text written to output, the
>       image anyway appears after the text. So one does not
>       have an opportunity to create a sequence of images
>       with some text description below each of them. This should
>       be fixed.
> (4) If the program becomes longer, it is cumbersome to
>   scroll down to the "evaluate" button, then look at the output,
>   then scroll a long way up again to fix a minor issue, and
>   repeat the whole process. Most of the time, one only works on
>   one function but needs to scroll through the text of all the
>   other ones too. It would help a lot to be able to collapse
>   functions which are not being edited at the moment (but
>   they still would be evaluated all together).
> (5) Undo was already discussed, this functionality is much needed.
> (6) The default graphical resolution of images is not too good.
>   It would be nice to have some handle on it, as well as on their
>   size and position in the browser. It should be possible to
>   put several of them next to each other horizontally, etc.
>   Perhaps this is possible and I just do not know how to do it.
> (7) I have now approx. 8 different worksheets for elementary
>   numerical methods and there will be (hopefully many) more.
>   It would be useful for me to compose my private "library" from
>   which I could then import any of them in the same way as things
>   are imported from sympy, numpy etc. This would greatly
>       facilitate classroom demonstrations.
>
> Best,
>
> Pavel
>
> --
> Pavel Solin
> University of Nevada, Reno
> http://hpfem.math.unr.edu/people/pavel/
> Hermes project: http://hpfem.org/
> FEMhub project: http://femhub.org/
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---