[sage-devel] Using Eclipse as an IDE to edit / run Sage scripts

2017-04-17 Thread Maxie Schmidt
Hello all. 

I'm interested in using Eclipse as an IDE around editing Sage files for 
Windows users who aren't experienced with a command line environment like 
ipython or the Sage shell. My interest in this is as part of a teaching and 
mentoring experience for mathematically-oriented users learning Python for 
the first time. I'm having some trouble motivating them to use Sage more 
frequently on Windows. 

I have found this link 
(https://groups.google.com/forum/#!topic/sage-support/YouA5r68wxc), but it 
still seems incomplete. Does anyone know of a good reference for using Sage 
from within Eclipse, or otherwise have any interest in this topic if I can 
put something together to get this all working? Any other suggestions or 
links to tips for getting these motivated users up and running with Sage 
besides the assignments I have prepared for them at 
https://github.com/maxieds/WXMLTilingsHOWTO/wiki would also be useful to me 
if you have them. 

Thanks. 

Maxie

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Sage 7.5 for Windows?

2017-04-17 Thread Erik Bray
On Sun, Apr 16, 2017 at 4:54 PM, Drini Pedro  wrote:
>
>
> El viernes, 31 de marzo de 2017, 4:30:03 (UTC-6), Erik Bray escribió:
>>
>> On Fri, Mar 31, 2017 at 12:10 PM, Eric Gourgoulhon
>>  wrote:
>> >
>> > Le vendredi 31 mars 2017 10:51:29 UTC+2, Erik Bray a écrit :
>> >>
>> >>
>> >> I would still suggest they use Docker...
>> >>
>> >
>> > OK, I've answered to the ask.sagemath user accordingly. Please correct
>> > my
>> > answer if necessary (I am not using Windows myself, nor Docker...).
>>
>> Thanks, looks good to me.  I can imagine some cases where the Docker
>> images may not be sufficient for some users, but honestly I think it's
>> a better UX in general, though perhaps not without its own learning
>> curve?
>
>
> The problem is (for windows users) that docker for windows runs only on
> Windows 10 professional editions, not home editions nor previous editions of
> windows  (most users are then excluded from the start)
> And you can't use docker under the WSL on windows either (there are some
> blogs that tell you how to use a mix of docker under wsl and native, but the
> native part will work only on Windows 10 pro).

That's not entirely true.  Have you tried Docker Toolbox?
https://www.docker.com/products/docker-toolbox

It works on Windows 7 and up and was the previous basis for my Windows
installer for Sage, and worked fine.

You can also try the Windows installer but it's currently at Sage 7.4
and is not "official" yet.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: SageNB -> Jupyter conversion needs testers

2017-04-17 Thread dimpase


On Monday, April 17, 2017 at 10:12:54 AM UTC+1, Volker Braun wrote:
>
> Well at least in your case it seems that chrome is detected and launched 
> automatically, this is IMHO preferable to a commandline prompt.
>

Why would any more browser windows need to be launched after one selects a 
sagenb notebook to convert?
I just don't get it. 


>
>
> On Monday, April 17, 2017 at 10:37:08 AM UTC+2, Dima Pasechnik wrote:
>>
>> Perhaps it's a good idea to provide a prompt at this point, something 
>> like "Launch the browser? (yes/no)"
>>
>>
>> On Sunday, April 16, 2017 at 3:11:08 PM UTC+1, Volker Braun wrote:
>>>
>>> The token is a security measure so no other (local) user can run 
>>> arbitrary code in your notebook. It is printed during startup (see below). 
>>> Usually, jupyter will launch its own browser so the token is used 
>>> automatically...
>>>
>>> $ sage -n
>>> ┌┐
>>> │ SageMath version 8.0.beta2, Release Date: 2017-04-12   │
>>> │ Type "notebook()" for the browser-based notebook interface.│
>>> │ Type "help()" for help.│
>>> └┘
>>> ┏┓
>>> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
>>> ┗┛
>>> Please wait while the SageNB export server starts...
>>> [W 16:07:47.160 NotebookApp] server_extensions is deprecated, use 
>>> nbserver_extensions
>>> [I 16:07:47.165 NotebookApp] Using MathJax: 
>>> nbextensions/mathjax/MathJax.js
>>> [I 16:07:47.197 NotebookApp] Writing notebook server cookie secret to 
>>> /run/user/1006/jupyter/notebook_cookie_secret
>>> [I 16:07:48.266 NotebookApp] Serving notebooks from local directory: 
>>> /mnt/disk/home/release/Sage
>>> [I 16:07:48.266 NotebookApp] 0 active kernels 
>>> [I 16:07:48.266 NotebookApp] The Jupyter Notebook is running at: 
>>> http://localhost:/?token=4b2b23550be648f42c955b4dfe2f8ab6890553699fb8b386
>>> [I 16:07:48.266 NotebookApp] Use Control-C to stop this server and shut 
>>> down all kernels (twice to skip confirmation).
>>> [C 16:07:48.267 NotebookApp] 
>>> 
>>> Copy/paste this URL into your browser when you connect for the first 
>>> time,
>>> to login with a token:
>>> 
>>> http://localhost:/?token=4b2b23550be648f42c955b4dfe2f8ab6890553699fb8b386
>>>
>>>
>>>
>>> On Tuesday, April 11, 2017 at 10:43:59 PM UTC+2, dimpase wrote:

 it does not work for me, or at least I must be doing something wrong.
 I get to the page listing the notebooks to convert, and then, if I 
 click on a notebook, I get a weird page asking for a password or a token.

 Password or token:
  Log in

 Token authentication is enabled. You need to open the notebook server 
 with its first-time login token in the URL, or enable a password in order 
 to gain access. The command:

 jupyter notebook list

 will show you the URLs of running servers with their tokens, which you 
 can copy and paste into your browser. For example:

 Currently running servers:http://localhost:/?token=c8de56fa... :: 
 /Users/you/notebooks

 Or you can paste just the token value into the password field on this 
 page.

 Cookies are required for authenticated access to notebooks.



 What I see above doesn't look as a valid URL, and then WTF is the token 
 I can paste instead?

 I tried c8de56fa, it didn't work. I tried clicking on the URL, it 
 brings me back to the page to choose

 the notebooks...

  Arrgh... Give me my console any time...





 On Tuesday, April 11, 2017 at 3:04:42 PM UTC+1, kcrisman wrote:
>
> This is now default in the Sage 8.0 beta series, and we strongly 
> welcome testers!  For a limited time only I have posted a binary of the 
> app 
> bundle at 
>
>
> http://www.math.gordon.edu/~kcrisman/sage-8.0.beta0-OSX_10.11.6-x86_64.app.dmg
>
> This should work on both Mac 10.11 and 10.12.   For bandwidth reasons 
> I would prefer if those with the ability simply upgrade and build from 
> scratch, but testing this app is also necessary.
>
> PLEASE TRY THIS and report back if you are at all interested in making 
> sure that Sage 8.0 doesn't come with nasty surprises for long-time sagenb 
> users.  Preliminary testing makes it seem as if we are okay, but it would 
> be very helpful to have feedback about better/more informative messages 
> for 
> end users.
>
> Note if you haven't downloaded a new one for a while: because it will 
> first have to patch some names to make sure all paths are correct, the 
> first launch will take a LONG time.
>



[sage-devel] Re: SageNB -> Jupyter conversion needs testers

2017-04-17 Thread Volker Braun
Well at least in your case it seems that chrome is detected and launched 
automatically, this is IMHO preferable to a commandline prompt.



On Monday, April 17, 2017 at 10:37:08 AM UTC+2, Dima Pasechnik wrote:
>
> Perhaps it's a good idea to provide a prompt at this point, something like 
> "Launch the browser? (yes/no)"
>
>
> On Sunday, April 16, 2017 at 3:11:08 PM UTC+1, Volker Braun wrote:
>>
>> The token is a security measure so no other (local) user can run 
>> arbitrary code in your notebook. It is printed during startup (see below). 
>> Usually, jupyter will launch its own browser so the token is used 
>> automatically...
>>
>> $ sage -n
>> ┌┐
>> │ SageMath version 8.0.beta2, Release Date: 2017-04-12   │
>> │ Type "notebook()" for the browser-based notebook interface.│
>> │ Type "help()" for help.│
>> └┘
>> ┏┓
>> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
>> ┗┛
>> Please wait while the SageNB export server starts...
>> [W 16:07:47.160 NotebookApp] server_extensions is deprecated, use 
>> nbserver_extensions
>> [I 16:07:47.165 NotebookApp] Using MathJax: 
>> nbextensions/mathjax/MathJax.js
>> [I 16:07:47.197 NotebookApp] Writing notebook server cookie secret to 
>> /run/user/1006/jupyter/notebook_cookie_secret
>> [I 16:07:48.266 NotebookApp] Serving notebooks from local directory: 
>> /mnt/disk/home/release/Sage
>> [I 16:07:48.266 NotebookApp] 0 active kernels 
>> [I 16:07:48.266 NotebookApp] The Jupyter Notebook is running at: 
>> http://localhost:/?token=4b2b23550be648f42c955b4dfe2f8ab6890553699fb8b386
>> [I 16:07:48.266 NotebookApp] Use Control-C to stop this server and shut 
>> down all kernels (twice to skip confirmation).
>> [C 16:07:48.267 NotebookApp] 
>> 
>> Copy/paste this URL into your browser when you connect for the first 
>> time,
>> to login with a token:
>> 
>> http://localhost:/?token=4b2b23550be648f42c955b4dfe2f8ab6890553699fb8b386
>>
>>
>>
>> On Tuesday, April 11, 2017 at 10:43:59 PM UTC+2, dimpase wrote:
>>>
>>> it does not work for me, or at least I must be doing something wrong.
>>> I get to the page listing the notebooks to convert, and then, if I click 
>>> on a notebook, I get a weird page asking for a password or a token.
>>>
>>> Password or token:
>>>  Log in
>>>
>>> Token authentication is enabled. You need to open the notebook server 
>>> with its first-time login token in the URL, or enable a password in order 
>>> to gain access. The command:
>>>
>>> jupyter notebook list
>>>
>>> will show you the URLs of running servers with their tokens, which you 
>>> can copy and paste into your browser. For example:
>>>
>>> Currently running servers:http://localhost:/?token=c8de56fa... :: 
>>> /Users/you/notebooks
>>>
>>> Or you can paste just the token value into the password field on this 
>>> page.
>>>
>>> Cookies are required for authenticated access to notebooks.
>>>
>>>
>>>
>>> What I see above doesn't look as a valid URL, and then WTF is the token 
>>> I can paste instead?
>>>
>>> I tried c8de56fa, it didn't work. I tried clicking on the URL, it brings 
>>> me back to the page to choose
>>>
>>> the notebooks...
>>>
>>>  Arrgh... Give me my console any time...
>>>
>>>
>>>
>>>
>>>
>>> On Tuesday, April 11, 2017 at 3:04:42 PM UTC+1, kcrisman wrote:

 This is now default in the Sage 8.0 beta series, and we strongly 
 welcome testers!  For a limited time only I have posted a binary of the 
 app 
 bundle at 


 http://www.math.gordon.edu/~kcrisman/sage-8.0.beta0-OSX_10.11.6-x86_64.app.dmg

 This should work on both Mac 10.11 and 10.12.   For bandwidth reasons I 
 would prefer if those with the ability simply upgrade and build from 
 scratch, but testing this app is also necessary.

 PLEASE TRY THIS and report back if you are at all interested in making 
 sure that Sage 8.0 doesn't come with nasty surprises for long-time sagenb 
 users.  Preliminary testing makes it seem as if we are okay, but it would 
 be very helpful to have feedback about better/more informative messages 
 for 
 end users.

 Note if you haven't downloaded a new one for a while: because it will 
 first have to patch some names to make sure all paths are correct, the 
 first launch will take a LONG time.

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at 

[sage-devel] Re: SageNB -> Jupyter conversion needs testers

2017-04-17 Thread Dima Pasechnik
Perhaps it's a good idea to provide a prompt at this point, something like 
"Launch the browser? (yes/no)"


On Sunday, April 16, 2017 at 3:11:08 PM UTC+1, Volker Braun wrote:
>
> The token is a security measure so no other (local) user can run arbitrary 
> code in your notebook. It is printed during startup (see below). Usually, 
> jupyter will launch its own browser so the token is used automatically...
>
> $ sage -n
> ┌┐
> │ SageMath version 8.0.beta2, Release Date: 2017-04-12   │
> │ Type "notebook()" for the browser-based notebook interface.│
> │ Type "help()" for help.│
> └┘
> ┏┓
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> ┗┛
> Please wait while the SageNB export server starts...
> [W 16:07:47.160 NotebookApp] server_extensions is deprecated, use 
> nbserver_extensions
> [I 16:07:47.165 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
> [I 16:07:47.197 NotebookApp] Writing notebook server cookie secret to 
> /run/user/1006/jupyter/notebook_cookie_secret
> [I 16:07:48.266 NotebookApp] Serving notebooks from local directory: 
> /mnt/disk/home/release/Sage
> [I 16:07:48.266 NotebookApp] 0 active kernels 
> [I 16:07:48.266 NotebookApp] The Jupyter Notebook is running at: 
> http://localhost:/?token=4b2b23550be648f42c955b4dfe2f8ab6890553699fb8b386
> [I 16:07:48.266 NotebookApp] Use Control-C to stop this server and shut 
> down all kernels (twice to skip confirmation).
> [C 16:07:48.267 NotebookApp] 
> 
> Copy/paste this URL into your browser when you connect for the first 
> time,
> to login with a token:
> 
> http://localhost:/?token=4b2b23550be648f42c955b4dfe2f8ab6890553699fb8b386
>
>
>
> On Tuesday, April 11, 2017 at 10:43:59 PM UTC+2, dimpase wrote:
>>
>> it does not work for me, or at least I must be doing something wrong.
>> I get to the page listing the notebooks to convert, and then, if I click 
>> on a notebook, I get a weird page asking for a password or a token.
>>
>> Password or token:
>>  Log in
>>
>> Token authentication is enabled. You need to open the notebook server 
>> with its first-time login token in the URL, or enable a password in order 
>> to gain access. The command:
>>
>> jupyter notebook list
>>
>> will show you the URLs of running servers with their tokens, which you 
>> can copy and paste into your browser. For example:
>>
>> Currently running servers:http://localhost:/?token=c8de56fa... :: 
>> /Users/you/notebooks
>>
>> Or you can paste just the token value into the password field on this 
>> page.
>>
>> Cookies are required for authenticated access to notebooks.
>>
>>
>>
>> What I see above doesn't look as a valid URL, and then WTF is the token I 
>> can paste instead?
>>
>> I tried c8de56fa, it didn't work. I tried clicking on the URL, it brings 
>> me back to the page to choose
>>
>> the notebooks...
>>
>>  Arrgh... Give me my console any time...
>>
>>
>>
>>
>>
>> On Tuesday, April 11, 2017 at 3:04:42 PM UTC+1, kcrisman wrote:
>>>
>>> This is now default in the Sage 8.0 beta series, and we strongly welcome 
>>> testers!  For a limited time only I have posted a binary of the app bundle 
>>> at 
>>>
>>>
>>> http://www.math.gordon.edu/~kcrisman/sage-8.0.beta0-OSX_10.11.6-x86_64.app.dmg
>>>
>>> This should work on both Mac 10.11 and 10.12.   For bandwidth reasons I 
>>> would prefer if those with the ability simply upgrade and build from 
>>> scratch, but testing this app is also necessary.
>>>
>>> PLEASE TRY THIS and report back if you are at all interested in making 
>>> sure that Sage 8.0 doesn't come with nasty surprises for long-time sagenb 
>>> users.  Preliminary testing makes it seem as if we are okay, but it would 
>>> be very helpful to have feedback about better/more informative messages for 
>>> end users.
>>>
>>> Note if you haven't downloaded a new one for a while: because it will 
>>> first have to patch some names to make sure all paths are correct, the 
>>> first launch will take a LONG time.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Name symbolic expressions

2017-04-17 Thread mforets


El lunes, 17 de abril de 2017, 7:17:38 (UTC+2), Aidan escribió:
>
> Marcelo,
>
> Could you be persuaded to turn this into the beginnings of a standalone 
>> document detailing the inner workings of symbolic functions? I think that 
>> would be a great addition to the documentation.
>>
>
> I didn't realize Paul was talking about me, and for some reason missed 
> Eric's quote. 
>

Hehe :) Paul was most probably referring to Nils, indeed! But it is legal 
if someone else takes initiatives if he/she is motivated and has some time 
(making a bit of noise around to avoid double work is good too). Moreover 
if what we produce is crap (probably, but that's normal), then experts will 
just say so, and we'll iterate to improve it.

>
> It was probably due to me being a bit discouraged, so I wasn't thinking 
> clearly and was mildly distancing myself from this. That is no ones fualt 
> but my own, and seeing this gave me a chance to look back and see that 
> people still wanted my contributution so thank you.
>

well..  some people would argue that (for your own projects, for team work, 
and so on..), the notion of self-esteem explains a lot of things.. old 
stuff to psychologists, but usually unexplored terrain for technical people 
like us. so keep it up!

 

>
> I'm ready now,
> I recently got an account. However, I have no clue where to start, but 
> I'll see what I can do.
>

In general you should read: http://doc.sagemath.org/html/en/developer/
But if you are familiar with git then you are some steps ahead. 
 
This week i don't have time to do it myself, but the task would be to 
create a ticket with the appropriate fields and description, and CC people 
(always checking for similar tickets).

Cheers,
Marcelo.-

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.