Ask Your Question
1

Link to file within worksheet

asked 2013-09-12 07:59:20 +0100

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

edit retag flag offensive close merge delete

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 ( 2019-01-09 11:28:01 +0100 )edit

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

slelievre gravatar imageslelievre ( 2019-01-10 20:11:38 +0100 )edit

I use SageNB.

ASK gravatar imageASK ( 2019-01-11 09:31:24 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-12 12:37:47 +0100

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...

edit flag offensive delete link more

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: 2013-09-12 07:59:20 +0100

Seen: 375 times

Last updated: Sep 12 '13