Opened 15 years ago

Closed 15 years ago

#1892 closed defect (fixed)

[with patch; positive review] notebook -- uploading a data file should give some help about the DATA variable

Reported by: William Stein Owned by: Kelly Boothby
Priority: major Milestone: sage-3.0.2
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

> The other option which some students tried was the upload a file
> using Data.  It indeed uploads the file to a text cell, but we were
> unable to find out how one accesses it. 

Upload it then access it by typing

open(DATA + 'chapitre.1.txt').read()

This DATA variable is documented in line three if you click on the Help button
in the upper right of the worksheet.  It would also be good if it appeared any
time you upload a file in the confirmation message -- it doesn't right now.  I'll
make a ticket to add this (which will be very easy). 

Attachments (1)

sage-1892.patch (1.0 KB) - added by William Stein 15 years ago.

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by William Stein

Attachment: sage-1892.patch added

comment:1 Changed 15 years ago by William Stein

Summary: notebook -- uploading a data file should give some help about the DATA variable[with patch; needs review] notebook -- uploading a data file should give some help about the DATA variable

comment:2 Changed 15 years ago by Michael Abshoff

Summary: [with patch; needs review] notebook -- uploading a data file should give some help about the DATA variable[with patch; positive review] notebook -- uploading a data file should give some help about the DATA variable

Patch looks good to me. Positive review.

Cheers,

Michael

comment:3 Changed 15 years ago by Michael Abshoff

Resolution: fixed
Status: newclosed

Merged in Sage 3.0.2.alpha1

Note: See TracTickets for help on using tickets.