Finally figured out a simple way to embed a pdf stored in the DATA folder
into the notebook:
def embedPdf(fname,width=800,height=400):
dataurl='/'+'/'.join(DATA.split('/')[-5:])
html.iframe(dataurl+fname,width=width,height=width)
Just in case someone finds it useful
Fred
On Monday, May
Finally figure out a simple way to embed a pdf stored in the DATA folder
into the notebook:
def embedPdf(fname,width=800,height=400):
dataurl='/'+'/'.join(DATA.split('/')[-5:])
html.iframe(dataurl+fname,width=width,height=width)
Just in case someone finds it useful
Fred
On Monday, May 1
Hi William
is there a function somewhere where I could get the worksheet ID number?
For example my current URL is http://ipaddress:8080/home/admin/14/
Is there a way to get the 14 programatically?
thanks
Fred
On Wednesday, May 14, 2014 2:24:37 PM UTC-4, William wrote:
>
> On Wed, May 14, 2014
On Wednesday, May 14, 2014 12:57:50 PM UTC-4, Fred Gruber wrote:
>
> Hi
> Since other people may use the notebook I would prefer if they didn't have
> to manually copy the URL.
>
> I noticed that the javascript variable "document.URL" have this
> information but I'm not sure how to bring the v
Hi
Since other people may use the notebook I would prefer if they didn't have
to manually copy the URL.
I noticed that the javascript variable "document.URL" have this information
but I'm not sure how to bring the value back to python.
I tried the following in a cell but the webpage changes to
Hi
Since other people my use the notebook I would prefer if they didn' have to
manually copy the URL.
I notices that the javascript variable "document.URL)" have this
information but I'm not sure how the bring the value to python.
I tried the following in a cell but the page changes to another
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