datitran / jupyter2slides Goto Github PK
View Code? Open in Web Editor NEWCloud Native Presentation Slides with Jupyter Notebook + Reveal.js
License: MIT License
Cloud Native Presentation Slides with Jupyter Notebook + Reveal.js
License: MIT License
Does this solution to export the presentation to PDF work in your case? I was able to get only first two slides exported into pdf-like view (see the screenshot below).
Thanks for your response and great template,
Ales
The link in the Getting Started section under the 2nd point doesn't seem to be pointing to any such introduction to creating slides as mentioned.
The link to the interactive template is broken:
http://interactive-slides.cfapps.io/
Hi,
the question is in the title ^^, and the problem illustrated in the image attached.
I would like to have a wider display, set the margin from top and the font size, and have something like scrolling in case the there are 'too many' lines to display in the slide.
How can I change the template file to achieve this ?
Thanks
jupyter nbconvert static/presentation_template.ipynb --to slides --reveal-prefix reveal.js-3.1.0 --config static/slides_config.py
'text/plain': ['<IPython.lib.display.YouTubeVideo at 0x10cd3ed68>']}, 'metadata': {}} is not valid under any of the given schemas
Failed validating 'oneOf' in code_cell['properties']['outputs']['items']:
On instance['cells'][7]['outputs'][0]:
{'data': {'image/jpeg': ['/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAUDBAgHCAgIBwgGBQgGBgUHBwYGCAcF...'],
'text/plain': ['<IPython.lib.display.YouTubeVideo at '
'0x10cd3ed68>']},
'metadata': {}}
Traceback (most recent call last):
File "/ssd/anaconda3/lib/python3.6/site-packages/ipython_genutils/ipstruct.py", line 132, in getattr
result = self[key]
KeyError: 'output_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/ssd/anaconda3/bin/jupyter-nbconvert", line 11, in
load_entry_point('nbconvert==5.1.1', 'console_scripts', 'jupyter-nbconvert')()
File "/ssd/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/ssd/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/nbconvertapp.py", line 305, in start
self.convert_notebooks()
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/nbconvertapp.py", line 473, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/nbconvertapp.py", line 444, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/nbconvertapp.py", line 373, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/exporter.py", line 171, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/exporter.py", line 189, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/slides.py", line 113, in from_notebook_node
return super(SlidesExporter, self).from_notebook_node(nb, resources=resources, **kw)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/html.py", line 69, in from_notebook_node
return super(HTMLExporter, self).from_notebook_node(nb, resources, **kw)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/templateexporter.py", line 236, in from_notebook_node
nb_copy, resources = super(TemplateExporter, self).from_notebook_node(nb, resources, **kw)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/exporter.py", line 131, in from_notebook_node
nb_copy, resources = self._preprocess(nb_copy, resources)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/exporters/exporter.py", line 308, in _preprocess
nbc, resc = preprocessor(nbc, resc)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/preprocessors/coalescestreams.py", line 30, in wrappedfunc
nb.cells[index], resources = function(cell, resources, index)
File "/ssd/anaconda3/lib/python3.6/site-packages/nbconvert/preprocessors/coalescestreams.py", line 72, in coalesce_streams
if output.output_type == 'stream' and '\r' in output.text:
File "/ssd/anaconda3/lib/python3.6/site-packages/ipython_genutils/ipstruct.py", line 134, in getattr
raise AttributeError(key)
AttributeError: output_type
Even as root I get to following output:
./phantomjs decktape.js generic --keycode=Space "http://0.0.0.0:9099/" presentation_template.slides.pdf
bash: ./phantomjs: Permission denied
ariya/phantomjs#11688 (This was my first idea)
Any idea ? (Also tried to install current Decktape-Version 2.4 but had issues with hummus)
Is there a possibility how to hide code, i.e. IFrame
calling here. When I export my notebooks to html (jupyter nbconvert --to html
). I use --template hidecode.tpl
(see below). Would it be possible to add this functionality as well? Thx
{%- extends 'full.tpl' -%} {% block input_group %} {% if cell['metadata'].get('slideshow',{}).get('slide_type','') =='Notes' -%} {{ super() }} {% endif %} {%- endblock input_group %}
It doesn't matter how I change the presentation_template.ipynb, and I can see that presentation_template.slides.html DOES in fact change when I run create_slides.py.
The slideshow I get when running run.py --file myfilename is always the original template slideshow.
hey awesome project, ive used it at work a few times, when i was doing research i found out theres a new library called RISE, from the jupyter team i think. its similar to this library but does the conversion with an extension built in to the notebook and it does it right away. maybe you could mention it in the readme or repo description to let people know about it:
Tried one cell as Markdown type and cannot get the Latex rendered. Works with RISE. How to fix it?
example:
Should I change something? I am getting an error: No web processes running.
Thanks!
I tried to reduce the font-size from the presentations, but they still appear very big, which classes must I modify in order to reduce the font-size?
Trying to access the server with run always tries to download a BIN file with names such as r+f86Z9C.bin and such...
using Firefox 57.0.2 (64 bits)
Ok, after trying and browsing for a while , phantomjs in this package is not Windows executable ,
and the one from phantomjs.org not working for decktape.
and the link in : http://astefanutti.github.io/decktape/downloads/phantomjs-msvc2013-win64.exe
is dead .
npm? failed , the same as the issue
any other option I have to get this repo working considering pdf outputting, like providing an exe for windows
P. S: ?pdf-export
is ugly
subprocess.CalledProcessError: Command '['jupyter', 'nbconvert', './static/presentation_template.ipynb', '--to', 'slides', '--reveal-prefix', 'reveal.js-3.1.0', '--config', 'static/slides_config.py']' returned non-zero exit status 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.