Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-03-31 Thread kcrisman
On Wednesday, March 30, 2022 at 2:48:15 PM UTC-4 Marc Culler wrote: > This issue is resolved in the current release of the SageMath 9.5 macOS > app. > > - Marc > >> >> Awesome. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-03-30 Thread Marc Culler
This issue is resolved in the current release of the SageMath 9.5 macOS app. - Marc On Wed, Mar 30, 2022 at 1:39 PM kcrisman wrote: > Just to follow up, did this issue get resolved satisfactorily in the 9.6 > release cycle? The last emails leave this unclear. > > -- > You received this message

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-03-30 Thread kcrisman
Just to follow up, did this issue get resolved satisfactorily in the 9.6 release cycle? The last emails leave this unclear. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-09 Thread Marc Culler
They look like two unrelated problems. In SageMath 9.5 there is a path problem which prevents the widgets nbextension.js file from being located by the Tornado server in some situations. (That is fixed in the current release of the macOS app by creating a symlink at the path that the Tornado serv

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-09 Thread 'Alan Stafford' via sage-support
Interact is broken for SageMath 9.5, it works in 9.4 so I don't understand the pull request. On Wednesday, February 9, 2022 at 10:01:01 AM UTC slelievre wrote: > Pull request to fix Sage interacts on the CoCalc side: > > - https://github.com/sagemathinc/cocalc/pull/5721 > -- You received this

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-09 Thread slelievre
Pull request to fix Sage interacts on the CoCalc side: - https://github.com/sagemathinc/cocalc/pull/5721 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-su

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-03 Thread Marc Culler
It certainly does. But that ticket is from 2017. (???) - Marc On Thursday, February 3, 2022 at 12:47:35 AM UTC-6 Matthias Koeppe wrote: > This looks like https://github.com/jupyter-widgets/ipywidgets/issues/1702 > > On Wednesday, February 2, 2022 at 8:33:18 PM UTC-8 Marc Culler wrote: > >> Tha

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Matthias Koeppe
This looks like https://github.com/jupyter-widgets/ipywidgets/issues/1702 On Wednesday, February 2, 2022 at 8:33:18 PM UTC-8 Marc Culler wrote: > That sounds very mysterious. How can it create widgets if it cannot load > the javascript file that implements the widgets? Maybe the client finds

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
That sounds very mysterious. How can it create widgets if it cannot load the javascript file that implements the widgets? Maybe the client finds the javascript file in some other path such as usr/local/jupyter and uses that file instead. Of course a self-contained app cannot rely on anything

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Matthias Koeppe
On my machine, macOS with Sage 9.5 compiled from source, I see the 404s too, but the widget from the notebook work anyway. On Wednesday, February 2, 2022 at 10:03:16 AM UTC-8 Marc Culler wrote: > I figured it out. > > * The root directory for the Tornado web application is > sage/venv/share/j

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
I figured it out. * The root directory for the Tornado web application is sage/venv/share/jupyter (determined by trial and error). * The path component in the url that the jupyter client uses to load the widget extension is /nbextensions/widgets/notebook/js/extension.js * There is no directo

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
Never mind. I must have accidentally tested with 9.4. Tornado is still returning a 404 when the notebook tries to load /nbextensions/widgets/notebook/js/extension.js. On Wednesday, February 2, 2022 at 9:36:10 AM UTC-6 Marc Culler wrote: > What I said above appears not to be correct. It looks

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-02 Thread Marc Culler
What I said above appears not to be correct. It looks like enabling the widgets extension with the instructions in the user_install page did work. I am now getting a widget with Sage 9.5. More testing is needed, but it looks promising. - Marc On Tuesday, February 1, 2022 at 9:21:23 PM UTC-6

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Marc Culler
No. I was referring to https://ipywidgets.readthedocs.io/en/latest/user_install.html which was Samuel's [more details here] link. Incidentally, following those instructions did result in a log message indicating that the widgets had been enabled in Jupyter. But there was no change in the behavio

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Marc Culler
Well, OK. Maybe so. But I've never seen a venv that resulted in a path like sage/local/var/lib/sage/venv-python3.9.9/var/lib/sage/. - Marc On Tue, Feb 1, 2022 at 6:16 PM Matthias Koeppe wrote: > On Tuesday, February 1, 2022 at 3:28:48 PM UTC-8 Marc Culler wrote: > >> Of course Sage's venv is

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Matthias Koeppe
On Tuesday, February 1, 2022 at 3:28:48 PM UTC-8 Marc Culler wrote: > Of course Sage's venv is not a true virtualenv as created by venv, > It is actually a true venv, unless no system python can be used and Sage builds its own copy of python3. -- You received this message because you are s

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Matthias Koeppe
Marc, are you referring to these instructions? https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation On Tuesday, February 1, 2022 at 3:28:48 PM UTC-8 Marc Culler wrote: > So is Sage followin

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Marc Culler
So is Sage following those instructions during its build process? The docs do not say what those jupyter commands actually do. They have separate instructions for enabling the widgets when using a virtualenv. Of course Sage's venv is not a true virtualenv as created by venv, so it is hard to

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Marc Culler
At some level the problem is that the Tornado web application used by Jupyter is returning a 404 when the client tries to load: http://localhost:/nbextensions/widgets/notebook/js/extension.js?v=20220201102631 I have no clue how the Tornado web application tries to translate that URL into a

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread slelievre
2022-02-01 15:13:27 UTC, Marc Culler: > > Thanks. And I can reproduce this. I see the error shown below > in the Firefox Console. (I include it here in case anyone might > recognize it). There's an FAQ entry here https://github.com/Wuliyuanulb/ComponentSDKDoc/blob/bfe53cf2162f62134356b58d7eae07e

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread Marc Culler
Thanks. And I can reproduce this. I see the error shown below in the Firefox Console. (I include it here in case anyone might recognize it). - Marc Could not open comm -- Error: Class jupyter.widget not found in registry utils.js:930 load_class

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-02-01 Thread 'Alan Stafford' via sage-support
I have run the Recommended_9_5.pkg file. On Monday, January 31, 2022 at 5:51:38 PM UTC Marc Culler wrote: > It sounds to me like you do not have the SageMath 9.5 Jupyter kernel > installed in /usr/local. That gets installed when you run the Installer > package that is included on the disk imag

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-31 Thread Marc Culler
It sounds to me like you do not have the SageMath 9.5 Jupyter kernel installed in /usr/local. That gets installed when you run the Installer package that is included on the disk image. Did you perhaps forget to run that installer after dragging the app to /Applications? - Marc On Monday, Jan

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-31 Thread 'Alan Stafford' via sage-support
I have downloaded both the SageMath 9.5 beta and 9.4 SageMath releases from git. I do not get widgets should I start the 9.4 or 9.5 kernel using the 9.5 interface, but I do when I use the 9.4 interface. On Monday, January 31, 2022 at 12:45:31 PM UTC dim...@gmail.com wrote: > On Mon, Jan 31, 202

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-31 Thread Dima Pasechnik
On Mon, Jan 31, 2022 at 3:59 AM 'Alan Stafford' via sage-support wrote: > > I have found that it doesn't work if I launch from the SageMath 9.5 icon for > any kernel 9.4 or 9.5. If I launch from the SageMath 9.4 interface it works > for either kernel. I am not sure I follow here. How do you ins

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-30 Thread 'Alan Stafford' via sage-support
I have found that it doesn't work if I launch from the SageMath 9.5 icon for any kernel 9.4 or 9.5. If I launch from the SageMath 9.4 interface it works for either kernel. >> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-29 Thread 'Alan Stafford' via sage-support
Exactly the same using Google Chrome. On Saturday, January 29, 2022 at 8:09:36 PM UTC dim...@gmail.com wrote: > On Sat, Jan 29, 2022 at 8:05 PM 'Alan Stafford' via sage-support > wrote: > > > > I only used Safari. Safari supports widgets at Cocalc so I can't think > that it won't support them s

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-29 Thread Dima Pasechnik
On Sat, Jan 29, 2022 at 8:05 PM 'Alan Stafford' via sage-support wrote: > > I only used Safari. Safari supports widgets at Cocalc so I can't think that > it won't support them should I run it locally. Interact has worked on > previous versions of SageMath. I am hoping the Mac support team will l

Re: [sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-29 Thread Dima Pasechnik
On Sat, Jan 29, 2022 at 6:28 PM kcrisman wrote: > > Just for data points, which browsers did you try on this? Thanks for > reporting. for what's worth, the interact works on Linux with Firefox. > > On Friday, January 28, 2022 at 1:02:57 PM UTC-5 alan_thoma...@yahoo.co.uk > wrote: >> >> Intera

[sage-support] Re: Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-29 Thread kcrisman
Just for data points, which browsers did you try on this? Thanks for reporting. On Friday, January 28, 2022 at 1:02:57 PM UTC-5 alan_thoma...@yahoo.co.uk wrote: > Interact just calls the function but no Interact widgets appear. > > Example attached. It works at Cocalc. > -- You received this

[sage-support] Re: @interact

2019-04-27 Thread kcrisman
This does (still) work in Sage cell, and probably in sagenb (?). https://sagecell.sagemath.org/?z=eJxzyMwrSS1KTC7h5UpJTVNI03BUsFXITSwpyqzQiI421DGM1YnWBVGxmppWvFwKQFBQBNSj4aiJzCupLEgFCmkCAJITFfI=&lang=sage&interacts=eJyLjgUAARUAuQ== -- You received this message because you are subscribed to the G

[sage-support] Re: @interact

2019-04-27 Thread William
Thanks! I see Jereon also created https://trac.sagemath.org/ticket/27735 On Saturday, April 27, 2019 at 1:31:51 AM UTC-7, Kwankyu wrote: > > This gets a grid input in Jupyter. Is this close to what you want? > > @interact > def _(A=input_grid(2,2, default=[[1,2],[3,4]])): > A = matrix(A) >

[sage-support] Re: @interact

2019-04-27 Thread Kwankyu
This gets a grid input in Jupyter. Is this close to what you want? @interact def _(A=input_grid(2,2, default=[[1,2],[3,4]])): A = matrix(A) print(A) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop

Re: [sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-11-02 Thread kcrisman
>> I actually prefer the standard notebook because of its menus and buttons. > >> My main problem is that my @interact examples that worked in Sage 6.XX > (and > >> even the examples in the current SageMath documentation) no longer > work in > They don't work in sagenb at all in 7.4? Tha

[sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-11-01 Thread ahauskne...@umassd.edu
On Sunday, October 23, 2016 at 1:03:13 PM UTC-4, ahaus...@umassd.edu wrote: > > Hi the @interact command no longer seems to be working in Sage 7.3 and > Sage 7.4 on an Mac Book Pro running El Capitan: > > Here is the contents I entered in an "Jupyter" notebook cell which I > copied from a Sage

[sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-31 Thread kcrisman
> > > > However, I still have the following questions: > > 1. How do you set SageMath 7.4 App so that it automatically starts up the > Jupyter notebook? > I don't think this is yet possible. Not sure about the menu bar. > > Even after renaming .sage, SageMath 7.4 App still opens using

Re: [sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-31 Thread kcrisman
On Wednesday, October 26, 2016 at 6:58:39 PM UTC-4, Jeroen Demeyer wrote: > > On 2016-10-27 00:02, kcrisman wrote: > > That said, there are still some incompatibilities in interact syntax, > > the last I heard (Jason Grout said the jupyter people were working > > actively no that, though). >

[sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-29 Thread ahauskne...@umassd.edu
On Sunday, October 23, 2016 at 1:03:13 PM UTC-4, ahaus...@umassd.edu wrote: > > Hi the @interact command no longer seems to be working in Sage 7.3 and > Sage 7.4 on an Mac Book Pro running El Capitan: > > Here is the contents I entered in an "Jupyter" notebook cell which I > copied from a Sage

Re: [sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-26 Thread Jeroen Demeyer
On 2016-10-27 00:02, kcrisman wrote: That said, there are still some incompatibilities in interact syntax, the last I heard (Jason Grout said the jupyter people were working actively no that, though). In interact *syntax* or interact *functionality*? Of course, the interact functionality is qu

Re: [sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-26 Thread kcrisman
On Monday, October 24, 2016 at 6:49:11 AM UTC-4, vdelecroix wrote: > > I think that they are stored in > > .sage/sage_notebook.sagenb/ > > And thanks to Volker we have a converter in the last Sage releases > > https://trac.sagemath.org/ticket/19877 > > That said, there are still some incompat

Re: [sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-24 Thread Vincent Delecroix
I think that they are stored in .sage/sage_notebook.sagenb/ And thanks to Volker we have a converter in the last Sage releases https://trac.sagemath.org/ticket/19877 Vincent -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from

[sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-23 Thread ahauskne...@umassd.edu
On Sunday, October 23, 2016 at 1:03:13 PM UTC-4, ahaus...@umassd.edu wrote: > > Hi the @interact command no longer seems to be working in Sage 7.3 and > Sage 7.4 on an Mac Book Pro running El Capitan: > > Here is the contents I entered in an "Jupyter" notebook cell which I > copied from a Sage

Re: [sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-23 Thread Vincent Delecroix
Your snapshot shows the "Sage notebook" and not the "Jupyter notebook". I confirm that with sage-7.5 your code * when executed in the Jupyter notebook (started with "sage --notebook=jupyter") works fine * when executed in the Sage notebook (started with "sage --notebook=sagenb") ends with the s

[sage-support] Re: @interact command not working in Sage 7.3 & 7.4

2016-10-23 Thread ahauskne...@umassd.edu
On Sunday, October 23, 2016 at 1:03:13 PM UTC-4, ahaus...@umassd.edu wrote: > > Hi the @interact command no longer seems to be working in Sage 7.3 and > Sage 7.4 on an Mac Book Pro running El Capitan: > > Here is the contents I entered in an "Jupyter" notebook cell which I > copied from a Sage

[sage-support] Re: Interact within an Interact

2012-07-26 Thread Jason Grout
On 7/26/12 3:45 AM, Aled Crow wrote: After coming across the following Interact within an Interact example (http://interact.sagemath.org/node/15) created byIra Hanson, I wanted to know whether it is technically possible to create an interact within an interact for my code below. Yes, though rig

[sage-support] Re: @interact and precise movement in Slider control

2012-01-29 Thread Socius
On Jan 28, 6:26 pm, Jason Grout wrote: > I should note that the sliders on aleph.sagenb.org allow you to click on > the value and change the number manually, rather than moving the slider. This is interesting, Jason, it is a useful features, apart the constraints. Can I ask if the new framework

[sage-support] Re: @interact and precise movement in Slider control

2012-01-29 Thread Socius
On Jan 28, 6:10 pm, Marshall Hampton wrote: > Sounds like Jason has a good solution for you eventually.  There are > some cruder ways to work around this in the meantime: > > 1) Customize the values in the slider so they are all "nice". > 2) Have a coarse- and fine-tuning slider.  The final value

[sage-support] Re: @interact and precise movement in Slider control

2012-01-28 Thread Jason Grout
On 1/28/12 11:10 AM, Marshall Hampton wrote: Sounds like Jason has a good solution for you eventually. There are some cruder ways to work around this in the meantime: 1) Customize the values in the slider so they are all "nice". 2) Have a coarse- and fine-tuning slider. The final value used co

[sage-support] Re: @interact and precise movement in Slider control

2012-01-28 Thread Marshall Hampton
Sounds like Jason has a good solution for you eventually. There are some cruder ways to work around this in the meantime: 1) Customize the values in the slider so they are all "nice". 2) Have a coarse- and fine-tuning slider. The final value used could be the coarse+fine value. The default fine

Re: [sage-support] Re: @interact and precise movement in Slider control

2012-01-27 Thread William Stein
On Fri, Jan 27, 2012 at 11:29 AM, Socius wrote: > On 27 Gen, 16:02, Jason Grout wrote: > >> In the new interact implementation (not in Sage yet, but used for the >> Sage Cell server at aleph.sagemath.org), we built the framework for the >> capability.  We haven't actually programmed the constrain

[sage-support] Re: @interact and precise movement in Slider control

2012-01-27 Thread Socius
On 27 Gen, 16:02, Jason Grout wrote: > In the new interact implementation (not in Sage yet, but used for the > Sage Cell server at aleph.sagemath.org), we built the framework for the > capability.  We haven't actually programmed the constraint part yet, but > the underlying framework is there, an

[sage-support] Re: @interact and precise movement in Slider control

2012-01-27 Thread Jason Grout
On 1/26/12 1:54 PM, Socius wrote: Hi all. I am experiment with the @interact command and relative controls. I would like to know if the Slider control provides some way to constrain precise movements. For example if I have a slider with a range 0-10^5, it would be nice to be able to constrain the

[sage-support] Re: @interact DeprecationWarning

2011-01-27 Thread Graham Enos
I'm always impressed with the speed and helpfulness of responses here. As it turns out, changing f = sage_eval(f, locals={'x':x}) to f(x) = sage_eval(f, locals={'x':x}) did the trick. Thanks very much for your help! - Graham On Jan 26, 2:39 pm, kcrisman wrote: > I can almost 100% guarante

[sage-support] Re: @interact DeprecationWarning

2011-01-26 Thread kcrisman
I can almost 100% guarantee this is about the fact that sage: f=x^2 sage: f(3) 9 is not supposed to work anymore, though currently one gets the deprecation warning and the answer. Are there places in your interact you can replace f=x^2 with f(x)=x^2? I've noticed this can be tricky to do if on

[sage-support] Re: @interact DeprecationWarning

2011-01-26 Thread Jason Grout
On 1/26/11 11:52 AM, Graham Enos wrote: Hi everybody, I wrote up a notebook worksheet to use in my Integral Calculus class that makes use of the @interact decorator. Whenever Ioad the worksheet for the first time, I get a deprecation warning regarding line 2558 of interact.py about deprecated fu

[sage-support] Re: interact question

2010-05-18 Thread Jason Grout
On 5/18/10 3:44 AM, ma...@mendelu.cz wrote: Great, many thanks, I should read the manual pager more carefully, since this is documented. I observed that using auto_update=False removes the output. Is it possible to keep the old output on the screen when changing numbers in input fields and updat

[sage-support] Re: interact question

2010-05-18 Thread ma...@mendelu.cz
Great, many thanks, I should read the manual pager more carefully, since this is documented. I observed that using auto_update=False removes the output. Is it possible to keep the old output on the screen when changing numbers in input fields and update when Update button is pressed? Robert On 1

[sage-support] Re: @interact input matrix

2010-04-07 Thread Pablo W.
Indeed, this is exactly what I was looking for ! Thank you very much ! On 7 avr, 21:59, Pablo Angulo wrote: > Is the following enough for your purposes? > > @interact > def _(M=matrix(ZZ,4,4)): >     ...do something with M... -- To post to this group, send email to sage-support@googlegroups.co

[sage-support] Re:@interact input matrix

2010-04-07 Thread Pablo Angulo
Is the following enough for your purposes? @interact def _(M=matrix(ZZ,4,4)): ...do something with M... -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this

Re: [sage-support] Re: @interact with non-Sage objects

2010-01-26 Thread calcpage
Don't forget arpanet, bitnet, milnet, timenet, usenet HTH, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- To post to this group, send email to sage-support@googlegroups

Re: [sage-support] Re: @interact with non-Sage objects

2010-01-26 Thread calcpage
I first taught programming in 1975 using BASIC on a DEC PDP-1170 minicomputer. We connected to it via a 300 baud modem. This was before video monitors so we used dumb terminals that printed tons of paper whenever there was any output! HTH, A. Jorge Garcia http://calcpage.tripod.com Teacher

[sage-support] Re: @interact with non-Sage objects

2010-01-25 Thread Jaap Spies
calcp...@aol.com wrote: Ah, those were the days... of archie, gopher, bitnet, uuencode, etc. archie bunker!? gopher? You are way ahead! uucp and family are breaking my heart :) All that on 300 bps or as we said at the time 300 baud. Or even 110 baud at the teletype. UNIX version 6, 1976!

Re: [sage-support] Re: @interact with non-Sage objects

2010-01-25 Thread calcpage
Ah, those were the days... of archie, gopher, bitnet, uuencode, etc. HTH, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- To post to this group, send email to sage-support@

Re: [sage-support] Re: @interact with non-Sage objects

2010-01-25 Thread Jaap Spies
calcp...@aol.com wrote: Well, the internet does predate the web... I can confirm. My e-mail addresses at that time looked like: ...!mcvax!coi!jaaps!jaap ...!mcvax!owoc!jaap Hard to imagine nowadays: you had to know the exact route to the addressee. jaaps was my machine at home. On a daily

Re: [sage-support] Re: @interact with non-Sage objects

2010-01-25 Thread calcpage
I'm using a blog app attached to my website at tripod.com These blogs each have different titles but are organized under different topics or threads. Do I mention SAGE in the titles or do I make a SAGE topic/threas? Regards, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Appl

[sage-support] Re: @interact with non-Sage objects

2010-01-25 Thread Gokhan Sever
On Jan 25, 3:59 am, Harald Schilly wrote: > On Jan 25, 12:39 am, gsever wrote: > > > It was my pleasure Harald. > > ;) > > And guess who just made it on that > page:http://sagemath.org/library-stories.html Thanks for making me famous :) (Put in my blog as well -- http://pycloud.blogspot.com/

[sage-support] Re: @interact with non-Sage objects

2010-01-25 Thread Harald Schilly
On Jan 25, 12:39 am, gsever wrote: > It was my pleasure Harald. > ;) And guess who just made it on that page: http://sagemath.org/library-stories.html -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 12:39 pm, Harald Schilly wrote: > On Jan 24, 6:50 pm, gsever wrote: > > > Added as first wiki entry :) > > No problem, and i hope it's ok that i pushed you to do it ;) > > http://twitter.com/sagemath/status/8158003421 It was my pleasure Harald. Sage is one of the well designed appr

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread Harald Schilly
On Jan 24, 6:50 pm, gsever wrote: > Added as first wiki entry :) No problem, and i hope it's ok that i pushed you to do it ;) http://twitter.com/sagemath/status/8158003421 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 11:14 am, Harald Schilly wrote: > On Jan 24, 5:06 pm, gsever wrote: > > > Thanks this helped. Adding a plt.clf() clear the figure after each > > plot update. > > no problem, and i looked for a .reset or similar, thanks for the .clr > ()! > Can you post this somewhere to the wiki.sage

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread Harald Schilly
On Jan 24, 5:06 pm, gsever wrote: > Thanks this helped. Adding a plt.clf() clear the figure after each > plot update. no problem, and i looked for a .reset or similar, thanks for the .clr ()! Can you post this somewhere to the wiki.sagemath.org/interact/graphics (or a better topic?) as an example

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 5:49 am, Harald Schilly wrote: > Last line must be plt.savefig('plt.png') and not .show() because you > are on a website and saved files are shown. When I tried it first, it > didn't update the image because it was somehow locally cached. On > second try it worked ... > > H Thanks t

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread Harald Schilly
Last line must be plt.savefig('plt.png') and not .show() because you are on a website and saved files are shown. When I tried it first, it didn't update the image because it was somehow locally cached. On second try it worked ... H -- To post to this group, send email to sage-support@googlegroup

[sage-support] Re: interact and certain input

2009-11-30 Thread kcrisman
> P=plot_slope_field(-g,(x,0,3),(y,0,20)) > > since the slope of the solution is -g, not g. Yeah, there was a typo of + for -. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.co

[sage-support] Re: interact and certain input

2009-11-30 Thread kcrisman
> > It looks like you are confusing y-as-a-variable and y-as-a-function an > awful lot.  How about: Yes, because I was hoping to make it as easy as possible to switch from the "static" version. Unfortunately, this isn't that :( but it's probably the best we can do? - kcrisman > y = var('y') >

[sage-support] Re: interact and certain input

2009-11-30 Thread Marshall Hampton
You probably also want to do something like P=plot_slope_field(-g,(x,0,3),(y,0,20)) since the slope of the solution is -g, not g. -Marshall On Nov 30, 4:37 pm, Jason Grout wrote: > kcrisman wrote: > > Dear support, > > > I'm giving a talk Wednesday and would like to do the following > > intera

[sage-support] Re: interact and certain input

2009-11-30 Thread Jason Grout
kcrisman wrote: > Dear support, > > I'm giving a talk Wednesday and would like to do the following > interact as an example of how easy interacts are: > > y = var('y') > @interact > def _(g=input_box(default = 1-y)): > P=plot_slope_field(g,(x,0,3),(y,0,20)) > y = function('y',x) > f =

[sage-support] Re: @interact sage notebook

2009-10-22 Thread Firephoenix
Ok, thanks for the answer. I'm in Montevideo, Uruguay. The University i'm talking about is "Universidad Católica del Uruguay Dámaso Antonio Larrañaga" (the Catholic University of Uruguay). We use either Sage or Maxima (whatever the wants to use) as a tool for Calculus 2, still we get to learn both

[sage-support] Re: @interact sage notebook

2009-10-21 Thread kcrisman
Thanks for choosing Sage! You may be interested in letting us know where you're located etc. At this point, I do not believe one can make selectors depend on each other. That said, the feature has been requested before (actually, a slightly different one), and we are tracking the issue here: h

[sage-support] Re: interact not working with 3D plots

2009-03-14 Thread Jason Grout
Mani chandra wrote: > Hi, > > The following code is not plotting for some reason. The silder comes > up and when I move it nothing happens. > > def exp_ikz_expansion(r, theta, l_max): > s = 0 > for l in range(l_max): > s = s + (2*l + 1)*I**l*spherical_bessel_J(l, r)*legendre

[sage-support] Re: Interact and dates - is there a datepicker?

2009-02-18 Thread tomanizer
Great. Thanks. On 18 Feb, 13:22, Harald Schilly wrote: > On Feb 18, 12:18 pm, tomanizer wrote: > > > How do we get it in there? > > here is a new ticket, you can watch progress > there:http://trac.sagemath.org/sage_trac/ticket/5305 > > h --~--~-~--~~~---~--~~ To

[sage-support] Re: Interact and dates - is there a datepicker?

2009-02-18 Thread Harald Schilly
On Feb 18, 12:18 pm, tomanizer wrote: > How do we get it in there? > here is a new ticket, you can watch progress there: http://trac.sagemath.org/sage_trac/ticket/5305 h --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Interact and dates - is there a datepicker?

2009-02-18 Thread tomanizer
Thanks Wiliam. There actually is a datepicker in jQuery. http://docs.jquery.com/UI/Datepicker#overview How do we get it in there? Regrads Thomas On Feb 17, 10:29 pm, William Stein wrote: > On Tue, Feb 17, 2009 at 2:24 PM, tomanizer > > wrote: > > > Hi All, > > > Is it possible to get a datep

[sage-support] Re: Interact and dates - is there a datepicker?

2009-02-17 Thread William Stein
On Tue, Feb 17, 2009 at 2:24 PM, tomanizer wrote: > > Hi All, > > Is it possible to get a datepicker widget in interact? > Or if there isn't can we create one? Has anybody ever written a javascript date picker? (Just kiddin'; it's one of the canonical things for people to do...) It would be gr

[sage-support] Re: interact input box problem

2009-02-10 Thread William Stein
Hi Jason (Grout), I found a very serious bug sort of similar to the one being discussed in this thread. Namely, if you make an interact like this things go horribly wrong: @interact def f(s=(0,pi,1)): print s I've posted a patch here http://trac.sagemath.org/sage_trac/ticket/5232 Please

[sage-support] Re: interact input box problem

2009-02-09 Thread kcrisman
> The patch makes it so that u=x^2 works, where it didn't before (it gave > you that weird string).  What changes is that typing u='x^2' now > literally puts 'x^2' (with the quote marks) in the input box, whereas > before the patch, only x^2 (without quote marks) would show up in the > input box.

[sage-support] Re: interact input box problem

2009-02-09 Thread Jason Grout
kcrisman wrote: > Does this mean that all people writing interacts would have to type > u='x^2' instead of u=x^2? > > Does this mean that all people using interacts would have to type > 'x^2' instead of x^2? > > This sounds like what Marshall says the behavior would be. That > sounds horrible.

[sage-support] Re: interact input box problem

2009-02-09 Thread Jason Grout
Marshall Hampton wrote: > I think I disagree with this change in behavior. One (major) point of > interact is to be very user-friendly. Needing to input functions as > strings is not user-friendly. The patch changes the behavior so that you *don't* need to input strings. From your statement,

[sage-support] Re: interact input box problem

2009-02-09 Thread kcrisman
Does this mean that all people writing interacts would have to type u='x^2' instead of u=x^2? Does this mean that all people using interacts would have to type 'x^2' instead of x^2? This sounds like what Marshall says the behavior would be. That sounds horrible. Shouldn't there be a way to get

[sage-support] Re: interact input box problem

2009-02-09 Thread Marshall Hampton
I think I disagree with this change in behavior. One (major) point of interact is to be very user-friendly. Needing to input functions as strings is not user-friendly. -Marshall On Feb 9, 10:26 pm, Jason Grout wrote: > kcrisman wrote: > > Dear Support, > > > On sagenb.org, try making an inter

[sage-support] Re: interact input box problem

2009-02-09 Thread Jason Grout
kcrisman wrote: > Dear Support, > > On sagenb.org, try making an interact with an input box explicitly > defined, e.g. > > @interact > def plotfunction(f=input_box(x^2)): > P=plot(f,0,1) > show(P) > > It works fine in the sense that whatever you type in does what it > should. But what'

[sage-support] Re: interact input box problem

2009-02-09 Thread Marshall Hampton
A workaround is: @interact def plotfunction(f=input_box('x^2')): P=plot(sage_eval(f, locals={'x':x}),0,1) show(P) In general I've found it safer to use string input and then explicitly convert it. Things look fine on 3.2.3, btw, at least on FF3 on linux. -Marshall On Feb 9, 5:31 pm, k

[sage-support] Re: interact input box problem

2009-02-09 Thread kcrisman
I should also point out that this does NOT occur (i.e. all is normal in the text input box) on our local server, which is 3.0.6. Could this be related to #4524? Either way, this is now # 5220. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: interact input box problem

2009-02-08 Thread Timothy Clemans
I'm able to reproduce this on sagenb.org on a Mac with FF3. On Sun, Feb 8, 2009 at 11:00 PM, kcrisman wrote: > > Dear Support, > > On sagenb.org, try making an interact with an input box explicitly > defined, e.g. > > @interact > def plotfunction(f=input_box(x^2)): >P=plot(f,0,1) >show(P

[sage-support] Re: Interact - multiple inputs for same parameter?

2008-09-04 Thread Marshall Hampton
There is a work-around though: have two controls (say coarse and fine) and then use the sum of those variables as the actual parameter. As a stupid example: @interact def stest(a = slider(0,3.14,.1,1.5), b = slider(0,.1,.01)): sum_var = a + b show(plot(lambda x: sin(x), 0, sum_var), xmin

[sage-support] Re: Interact - multiple inputs for same parameter?

2008-09-04 Thread Jason Grout
kcrisman wrote: > Is it possible to create an @interact setup such that there are two > ways to specify the same input? That is, perhaps one wants to use the > slider to get close to a desired input, but then for fine-tuning > beyond the user's motor skill control (e.g. if there are hundreds of >

[sage-support] Re: @interact: change size of output "box"?

2008-07-22 Thread Igor Tolkov
Dear Mr. Palmieri, Thank you for your suggestion. The minimum height of the cell seems annoying and unnecessary. It should be easy to fix, and I am working on it now. Igor Tolkov On Jul 22, 2:18 pm, John H Palmieri <[EMAIL PROTECTED]> wrote: > Suppose I do this in the notebook: > > @interact >

[sage-support] Re: Interact and published notebooks

2008-07-09 Thread Harald Schilly
On Jul 9, 8:41 pm, "D. M. Monarres" <[EMAIL PROTECTED]> wrote: > Okay that is fine, just means that I have to push harder to get a > sage server locally on my campus for the students to play with. Thanks For now, you can also construct animations that for example print a variable value and the

[sage-support] Re: Interact and published notebooks

2008-07-09 Thread William Stein
On Wed, Jul 9, 2008 at 11:41 AM, D. M. Monarres <[EMAIL PROTECTED]> wrote: > > Okay that is fine, just means that I have to push harder to get a > sage server locally on my campus for the students to play with. Thanks It's only a temporary problem since Igor Tolkov is supposed to "fix this" as p

[sage-support] Re: Interact and published notebooks

2008-07-09 Thread D. M. Monarres
Okay that is fine, just means that I have to push harder to get a sage server locally on my campus for the students to play with. Thanks -- David Monarres [EMAIL PROTECTED] "There... I've run rings 'round you logically" -- Monty Python's Flying Circus On Jul 9, 2008, at 11:35 AM, William Ste

  1   2   >