These are chat archives for ipython/ipython

6th
Sep 2016
bsdis
@bsdis
Sep 06 2016 07:26
anybody in here?
Min RK
@minrk
Sep 06 2016 07:35
@bsdis all download options show a blank page and fail?
bsdis
@bsdis
Sep 06 2016 07:36
@minrk yeah except export to pdf...that shows an actual error saying pdflatex is not available
which is understandable
since it is not installed
Min RK
@minrk
Sep 06 2016 07:40
Even download as .py-script?
bsdis
@bsdis
Sep 06 2016 07:41
yep, also blank
and no errors shown in the web console
Min RK
@minrk
Sep 06 2016 07:44
What about in the terminal where the notebook server is running?
bsdis
@bsdis
Sep 06 2016 08:03
@minrk sorry, it actually does download something even though it shows a blank page
Min RK
@minrk
Sep 06 2016 08:03
What browser?
bsdis
@bsdis
Sep 06 2016 08:03
@minrk chrome
Min RK
@minrk
Sep 06 2016 08:03
The page should close when the download completes.
OS?
bsdis
@bsdis
Sep 06 2016 08:03
ubuntu 16.04
Min RK
@minrk
Sep 06 2016 08:04
ok, not sure why it isn't closing the download page.
bsdis
@bsdis
Sep 06 2016 08:05
right ok. blank page is opened, it very quickly flashes a download icon in lower left corner and thats it...and i had to go into browser download and click keep to download the .py file... .html for presentation was downloaded without me having to confirm it anywhere
but i guess all that jazz is browser issue stuff
@minrk is the presentation functionality stable? Like if i click download as presentation it should just download a self contained html file which should be able to run my presentation in a browser without any dependencies needed in same directory right
Min RK
@minrk
Sep 06 2016 08:15
It doesn't include require.js itself; require.js is loaded from a CDN, I believe, or a local require.js directory.
bsdis
@bsdis
Sep 06 2016 08:30
@minrk hmm ok... i made a very simple notebook: https://ibin.co/2u7bIW6PVLXX.png i press clear all cells, run all and save checkpoint and then download as presentation. An html file is downloaded, and when I open the file i can see orange navigation arrows in lower right corner - but i do not see any cell content...also not when i press the navigation arrows. However i see the content - forexample "Plot is good" in the html src code if i right click and press view src code on the downloaded html file. Am I missing something?
Min RK
@minrk
Sep 06 2016 08:31
I think the standalone file only works if it's next to a reveal.js directory containing reveal.js.
Otherwise, you have to use nbconvert --to slides --post serve [notebook]
in order for reveal.js to load correctly
bsdis
@bsdis
Sep 06 2016 08:31
aha i see. i will try to clone reveal.js first to see
mmm having reveal.js in same dir as downloaded html file did not make a difference
Min RK
@minrk
Sep 06 2016 08:35
Can you try the nbconvert --to slides --post serve?
bsdis
@bsdis
Sep 06 2016 08:36
yeah im on it
its $jupyter nbconvert --to slides --post serve [notebook] right?
@minrk if yes, that just shows me help text
ah sry
my bad
bsdis
@bsdis
Sep 06 2016 08:41
@minrk hmm same result. It actually quickly flashes the slide from the notebook and then its blank
Min RK
@minrk
Sep 06 2016 08:41
Strange. nbconvert version?
bsdis
@bsdis
Sep 06 2016 08:43
4.2.0
Min RK
@minrk
Sep 06 2016 08:43
It's possible these are bugs that have been fixed in nbconvert master that is set to release 5.0 soon.
bsdis
@bsdis
Sep 06 2016 08:44
@minrk right i see. I am using conda, do you know if if that update will be updated in conda also at the same time?
@minrk also, lets say i wanted some functionality where i offered the user a button called something like "export to presentation web" where the server basically runs the nbconvert command and puts the output in a specific webdirectory handled by another webserver...where basically all presentation are listed and can just be clicked... would it be possible for me to add such a button to the notebook?
Min RK
@minrk
Sep 06 2016 08:56
@bsdis conda generally updates pretty quickly. conda-forge tends to update within a few hours.
Min RK
@minrk
Sep 06 2016 09:07
Such a button would be possible. Might take some work, though.
A serverextension lets you register new HTTP handlers, an nbextension lets you add new buttons.
bsdis
@bsdis
Sep 06 2016 10:13
@minrk aha... after having played a bit around with nb presentation, i have found out that i have to click the presentation editor and click a button to link my slides...now they show like expected
Damian Avila
@damianavila
Sep 06 2016 11:47
@bsdis cc/ @minrk I think you are trying to export some nbpresent slideshow... currently the reveal.js based slideshow you get with nbconvert does not have a UI to get it from the notebook. My guess is that you are trying to download a nbpresent-based slideshow as standalone html. Just to give you some context, there is 3 main slideshow tools: a static reveal.js slideshow you can get with nbconvert and live slideshow (where you can execute code): RISE AND nbpresent. RIse is also based on reveal.js but nbpresent it is not, RISE does not have an static exporter but nbpresent does... nbpresent is inspired on RISE but the UI is totally differente. Finally, nbpresent is shipped by default with Anaconda, so I guess this is why you are testing it. If you want RISE you have to install it from my conda channel. Hope this helps you to understand the context...
bsdis
@bsdis
Sep 06 2016 11:56
@damianavila thanx for your input, So when i click edit i get this: https://ibin.co/2u8c9w0eNfj3.png Is that what you call RISE interface ?
Damian Avila
@damianavila
Sep 06 2016 19:28
@bsdis nop, that's nbpresent, you can get RISE here: https://github.com/damianavila/RISE and RISE use the same UI that the static nbconvert slides use to set up the different slides components: the celltoolbar. nbpresent, instead, use another UI (what you see in orange) to actually define which things put on the slide (altough it also have a RISE importer because it was developed, inpired on RISE... @bollwyvl is the author of nbpresent, he can give you more details if you are interested. If you have doubts about RISE, ping me instead :wink:
bsdis
@bsdis
Sep 06 2016 19:32
@damianavila so which one is better/have more features/less bugs/better integration etc. :D ? nbpresent or RISE?
Damian Avila
@damianavila
Sep 06 2016 19:41
@bsdis they are different things even when they provided the same final output, I mean, an slideshow... @bollwyvl we should do a blog post about this :wink: RISE gives you less power to customize things, but is more structured than nbpresent, which could be an advantage or not depending on your needs and comfort. RISE is pretty stable and widely used, nbpresent is newer but also is a great piece of soft... so, my advice, test them both to see which one fill you the best... btw, RISE beta is out since a few days if you want to try it: http://www.damian.oquanta.info/posts/rise-400b1-is-available-please-test-it.html and you already have nbpresent...