Ask Your Question

ooglyboogly's profile - activity

2019-02-19 00:20:05 +0200 received badge  Popular Question (source)
2018-11-29 14:14:10 +0200 received badge  Famous Question (source)
2017-10-10 10:10:13 +0200 received badge  Popular Question (source)
2017-08-15 22:43:34 +0200 received badge  Notable Question (source)
2016-08-02 16:50:45 +0200 received badge  Nice Question (source)
2015-11-03 14:53:45 +0200 received badge  Famous Question (source)
2015-05-24 00:15:00 +0200 received badge  Notable Question (source)
2015-03-08 06:28:44 +0200 received badge  Popular Question (source)
2014-09-19 16:19:47 +0200 received badge  Popular Question (source)
2014-06-29 20:52:51 +0200 received badge  Famous Question (source)
2014-06-29 20:52:51 +0200 received badge  Notable Question (source)
2014-06-29 20:52:51 +0200 received badge  Popular Question (source)
2012-07-11 08:18:15 +0200 asked a question How would you make folders in a notebook?

I would absolutely love to have directories in sage. I tried simply renaming paths, so /home/admin/20 becomes /home/admin/test. That doesn't work. Nor does renaming it a number (/home/admin/1000)

Right now, all I can think of is to hardcode HTML directories (so they'd be independent of the sage server).

[edit] In case it wasn't clear, I'm somewhat new to python, but am willing to learn. I'm not even sure how the sagenb server works, so if you could just point me in the right direction, that would be good.

2012-07-06 05:58:04 +0200 answered a question How to save Sage worksheets to use on a different computer.

In the notebook., you can check the box near a worksheet and click the 'Download' button (right above the columnn with worksheet names). That will give you a zip which you can open by clicking the 'Upload' button near the 'New Worksheet' button.

2012-06-29 11:23:54 +0200 answered a question Numerical Integration Causes Errors

The arguments for rhs.append() looks ambiguous. eg. 2k2y should be 2k2y.

2012-06-20 10:28:07 +0200 received badge  Self-Learner (source)
2012-06-18 14:06:58 +0200 received badge  Nice Answer (source)
2012-06-18 13:41:42 +0200 received badge  Teacher (source)
2012-06-18 13:08:06 +0200 answered a question how do i quit sage?

I think the application Activity Monitor is the easiest way to track down rogue processes. It's in the utilities folder in the applications folder. Open that, and then take kcrisman's advice of killing python processes. Do that by selecting the process, and clicking the stop sign at the top left. You can normally just quit, but sometimes you need to force quit (which is like the kill -9 that kcrisman suggests.)

2012-06-18 13:07:43 +0200 answered a question how do i quit sage?

I think the application Activity Monitor is the easiest way to track down rogue processes. It's in the utilities folder in the applications folder. Open that, and then take kcrisman's advice of killing python processes. Do that by selecting the process, and clicking the stop sign at the top left. You can normally just quit, but sometimes you need to force quit (which is like the kill -9 that kcrisman suggests.)

2012-06-15 09:34:42 +0200 commented answer Organizing notebooks

heh. Haven't been using Sage long enough to say.

2012-06-14 10:26:09 +0200 received badge  Good Question (source)
2012-06-14 08:53:48 +0200 answered a question Organizing notebooks

I found a (possibly) better option I'll be trying: You can download worksheets as zips. So I'll try out keeping the notebook empty, loading a zip of worksheets, and then download again to save them. Then delete the files from the notebook, to keep it nice and clean for when I want to load other worksheets. I can archive frequently used/sandbox worksheets. This also takes care of the issue I've had with wishing I could revert to the worksheet I had a couple hours ago.

2012-06-13 21:49:00 +0200 received badge  Nice Question (source)
2012-06-13 16:51:15 +0200 asked a question Organizing notebooks

How do you do it? Sure, there's the option to archive, and you can start another notebook. But it seems silly to start another server for the sake of organization. Is there a way to make directories within a notebook? Or to view multiple notebooks using the same port?

2012-06-11 08:44:54 +0200 answered a question Export sage plot to pgfplots or to tkz-fct

I think the sage plot() function generates a graphics object, so there's no general way to export it to another graphing program. I'm no expert, though.

2012-06-08 12:46:58 +0200 asked a question Integrated data upload.

I'd like to have something like the single cell server has when you click the 'advanced' button. I tried simply copying the html from the save/upload data page, but I get the error:

Error uploading file (missing url arg).

I can't seem to find the necessary html/javascript on the single cell server.

What I tried to use, except with <'s and \n\'s deleted:

html('div>

form method="POST" action="do_upload_data"
      name="upload" enctype="multipart/form-data">
    div>
        label for="file">Browse your computer to select a file to upload:</label>
        input size="50" type="file" name="file" />
    </div>
    div>
        label for="name">What do you want to call it? (if different than the original name)</label>
        input size="50" type="text" name="name" />
    </div>
    button type="submit">Upload or Create Data File</button>
</form>

')

2012-06-04 16:06:56 +0200 commented answer How can a cell output its own ID?

Great! Thanks.

2012-06-04 14:39:50 +0200 commented answer How can a cell output its own ID?

Thanks. Don't know how I missed that. I guess I'll just make a new worksheet, and not delete cells so they're nice and orderly.

2012-06-04 11:16:03 +0200 asked a question How can a cell output its own ID?

I understand this works:

    C = sage.server.notebook.cell.Cell(0, '2+3', '5', None)
    C.id()

But I don't know understand how you can find that out for some arbitrary cell.

So far, the only way I know how is to use the interact decorator, and see what cell ids are used in the HTML.

2012-06-01 16:01:36 +0200 asked a question Is there any way to title a plot? Or can you display matplotlib graphs in sage?

I know you can in matplotlib, but I can't find out how to do it with sage. I can make a graph with a title in matplotlib, but I'm not sure how to get it to display in a notebook.

EDIT: of course I found the answer right after posting this. pyplot.savefig displays the image.

2012-05-30 09:43:22 +0200 received badge  Student (source)
2012-05-30 08:41:39 +0200 received badge  Supporter (source)
2012-05-30 08:41:24 +0200 received badge  Editor (source)
2012-05-29 17:59:39 +0200 asked a question Are there options for interactive/dynamic content?

I'm starting to switch over to sage from mathematica, and so far the biggest thing I'm missing is the ability to make interactive applets. I managed to get mplh5canvas up and running. While it's a nice start, It's far from the sort of thing I can do with mathematica.

In mathematica, one can make an interactive sin graph with something like (I forget if the dynamic tag goes with the a or the plot[]):

Slider[Dynamic[a],{0,5}]
Plot[Dynamic[a]*sin[x],{x,-10,10}]

And of course it's even easier with Manipulate[].

How far is Sage from this sort of functionality? I think this sort of thing is immensely helpful to students who just want to explore a function.

If I learn how to effectively use the HTML 5 canvas and javascript, are dynamic plots within reach?

EDIT: Thanks a lot! Interact seems to be what I was looking for.