On Monday, May 12, 2014 10:03:34 AM UTC-4, Fred Gruber wrote:
>
> Hi
> I wanted to embed a pdf in a sage notebook. I noticed that if the browser
> I'm using is able to open pdfs then I can use the html.iframe function to
> open any pdf that is online is some server.
>
> My question is how can I open a pdf store in the DATA directory?
>
> I know I could open the file by using the full URL of the notebook for
> example:
> html.iframe("http://localhost:8083/home/admin/16/data/tmp.pdf")
> would open the tmp.pdf that is store in the DATA folder of the notebook
>
> Is there a way to find out the URL of the notebook within sage?
>
Dear Fred,
I tried this in a non-localhost server, and got the following results.
1) Trying html.iframe(DATA+'name_of.pdf') got some kind of permission
denied webpage error.
2) Trying
html.iframe('http://my_sage_server.domain.com/home/kcrisman/5/data/name_of.pdf')
worked fine, and looks really cool.
So I'm not sure I understand your question. Do you mean you want to find
the full URL as a command within Sage? Is your use case one where just
cutting and pasting from the browser's URL line is not an option?
- kcrisman
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.