Ask Your Question

Link to file within worksheet

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

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?


edit retag flag offensive close merge delete


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 +0200 )edit

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

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

I use SageNB.

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

1 Answer

Sort by ยป oldest newest most voted

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

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:

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


Asked: 2013-09-12 07:59:20 +0200

Seen: 344 times

Last updated: Sep 12 '13