[sage-support] Re: import

2022-06-06 Thread HG
No answer ? I endly found a good work around at least for me at the moment %run name.ipynb Le dimanche 26 septembre 2021 à 10:31:49 UTC+2, HG a écrit : > Hi, > > Iq there a way to import function from a sage notebook to another notebook > ? > > I have long graphic one about 30 lines and I woul

[sage-support] Re: Import skimage(scikit-image) in sage

2015-07-08 Thread Dima Pasechnik
On Wednesday, 8 July 2015 09:04:20 UTC+1, avi kaur wrote: > > I found a library skimage. How should I import it in sage? > > http://scikit-image.org/ rk, > in principle, something like sage --pip install -U scikit-image should work, provided it does not break Sage by installing incompa

[sage-support] Re: import MatLab code into Sage

2012-05-15 Thread Jason Grout
On 5/15/12 5:20 PM, fu7ur3 wrote: Hi, may I ask you to help me converting matlab code into sage and also could you please tell me how to run this code in sage afterwards? I've followed this link http://ask.sagemath.org/question/1416/import-matlab-code-into-sage but the online OMPC translator see

[sage-support] Re: Import scikits sklearn fails?

2012-01-02 Thread DavidG
Just for closure on this. I was able to get the functionality I needed into Sage by extracting and modifying functions and dependencies as needed in the source code. It was tedious but not too difficult. So to all who answered this:Thanks again for the assistance! On Jan 2, 8:23 pm, DavidG wrote:

[sage-support] Re: Import scikits sklearn fails?

2012-01-02 Thread DavidG
Thanks for the help Simon, I was able to build scikit-learn following your instructions however when I tried to import the module it reported a Scipy error during the import. I then reinstalled SciPy thinking there was an error and after installing SciPy Sage returned the "make" error while importi

[sage-support] Re: Import scikits sklearn fails?

2012-01-02 Thread Simon King
Hi David, On 2 Jan., 19:00, DavidG wrote: > I used my default python2.6 which is running in 32 bit architecture to > compile  the sklearn module > I'm running a 64 bit version of SAGE, hence the incompatability. No. Sage has its own installation of Python, Maxima, Gap, Singular, ... (also known

[sage-support] Re: Import scikits sklearn fails?

2012-01-02 Thread DavidG
I used my default python2.6 which is running in 32 bit architecture to compile the sklearn module I'm running a 64 bit version of SAGE, hence the incompatability. Given the error and instruction to run "Make" first. How can I run make from within sage. Also using the command "sage -sh" from my te

[sage-support] Re: Import Ellipse module?

2011-06-01 Thread Mel
It turns out I needed to update my version of Sage. I've fixed the problem :) On May 27, 7:59 am, Rajeev Singh wrote: > On Thu, May 26, 2011 at 10:26 PM, Mel wrote: > > Do I need to download/load something before I can import the ellipse > > module? > > > When I type > >    from sage.plot.ellips

[sage-support] Re: Import a Data file

2010-03-04 Thread Marshall Hampton
The csv module can be helpful for such things: http://docs.python.org/library/csv.html -Marshall On Mar 4, 2:10 pm, Oscar Castillo-Felisola wrote: > Hi everybody, > I'd like to know if it is possible to import data into Sage, so that > plots (or other manipulation) might be done. > >

[sage-support] Re: import and global namespace

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 2:09 AM, zeliboba wrote: > > hmm... the question was different: "attach" makes variable global, > "import" does not. is it bug or feature? Feature. When you use attach, Sage executes the code then and there in the scope of your current file. When use "import", you're us

[sage-support] Re: import and global namespace

2009-10-29 Thread zeliboba
hmm... the question was different: "attach" makes variable global, "import" does not. is it bug or feature? On Oct 28, 5:52 pm, William Stein wrote: > On Wed, Oct 28, 2009 at 5:16 AM, zeliboba wrote: > > > dear all > > > in documentation for var() it is stated "variables ... automatically > >

[sage-support] Re: import and global namespace

2009-10-28 Thread William Stein
On Wed, Oct 28, 2009 at 5:16 AM, zeliboba wrote: > > dear all > > in documentation for var() it is stated "variables ... automatically > injected into the global namespace". I'd like to define variable in > module and then use it from several scripts, but variable is not > exported actually. my p

[sage-support] Re: import

2009-10-13 Thread georg grafendorfer
Hi Mikie, put the file with your class definitions (let's say class.py) in whatever directory (let's say /home/mikie/mydir) and add the path of this directory to the SAGE_PATH environment variable, you can do this for example by adding the line export SAGE_PATH=${SAGE_PATH}:/home/mikie/mydir to

[sage-support] Re: Import users to sage

2009-08-24 Thread William Stein
On Mon, Aug 24, 2009 at 1:19 PM, Alexandre Belousov wrote: > > Hello! > Currently I've got a moodle installation on the same server as sage > notebbok is installed on with plenty of users (dept students and > teachers) and mysql authentication. > I wonder is there a way to auth users via external

[sage-support] Re: import module for all notebooks

2009-07-15 Thread dw
I did try your first suggestion again, and that worked. Since I'm running one instance of notebook under a single user, this works great. Thanks again. On Jul 15, 4:25 pm, dw wrote: > Correction to my last post.  I thought that was working, but it seems > the module was still imported from a p

[sage-support] Re: import module for all notebooks

2009-07-15 Thread dw
Correction to my last post. I thought that was working, but it seems the module was still imported from a previous import call. I've added the line to the all.py file, do I need to re-build sage in any way for this to take effect? I've tried restarting the server with no luck. On Jul 9, 2:08 p

[sage-support] Re: import module for all notebooks

2009-07-09 Thread dw
That's exactly what I needed. Thank you. The second solution you posted was right on. --~--~-~--~~~---~--~~ 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

[sage-support] Re: import module for all notebooks

2009-07-09 Thread Marshall Hampton
One way, from the wiki faq (http://wiki.sagemath.org/faq): QUESTION: Is there anything so Sage can be made to automatically execute commands on startup? ANSWER: Yes, just make a file $HOME/.sage/init.sage and it will be executed any time you start sage. A more pervasive solution would be to chan

[sage-support] Re: import sage.rings.integer fails

2007-11-25 Thread William Stein
On Nov 25, 2007 10:30 AM, William Stein <[EMAIL PROTECTED]> wrote: > > On Nov 25, 2007 10:29 AM, Timothy Clemans <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I started writing an external library that uses Sage and I meditatly ran > > into: > > > > >>> import sage.rings.integer > > Traceback (m

[sage-support] Re: import sage.rings.integer fails

2007-11-25 Thread William Stein
On Nov 25, 2007 10:29 AM, Timothy Clemans <[EMAIL PROTECTED]> wrote: > > Hi, > > I started writing an external library that uses Sage and I meditatly ran into: > > >>> import sage.rings.integer > Traceback (most recent call last): > File "", line 1, in > ImportError: libcsage.so: cannot open sh