Ask Your Question
1

Link to file within worksheet

asked 11 years ago

fogl gravatar image

I would like to add a link to file (which was previously uploaded to notebook) which would open when you click on it. Can this be done in sage?

Regards

Preview: (hide)

Comments

I have a similar problem with a link to file.pdf. I use SageMath version 8.4 on Mac osx 10.10.5. I did following - open a text cell - Insert/Edit Link - Link URL: file:///Users/roebi/Documents/SageMath/pdf/sage_for_undergraduates_color.pdf - Target: Open Link in a New Window - Title: sage_for_undergraduates_color.pdf If I click on the text of teh link, nothing happens Can anyone help? Thank you

ASK gravatar imageASK ( 6 years ago )

@ASK: Are you using SageMath with the Jupyter Notebook? Or the SageNB notebook?

slelievre gravatar imageslelievre ( 6 years ago )

I use SageNB.

ASK gravatar imageASK ( 6 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 11 years ago

ndomes gravatar image

What do you want to do with the uploaded file?

You can insert links in a text cell and refer to a relative path like 'data/myfile.txt' where 'myfile.txt' is the uploaded file.

Or do you want to use code stored in that file, look at:

http://ask.sagemath.org/question/2170...

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 394 times

Last updated: Sep 12 '13