Git Product home page Git Product logo

Comments (9)

damianavila avatar damianavila commented on July 30, 2024

Hi, damianavila, thanks for your amazing tool.

Thanks!

what should I do?

mmm... don't try to reinstall... just change the following line: https://github.com/damianavila/live_reveal/blob/master/custom.js#L21
and replace zoom with linear... then you have to reload you notebook, BUT delete the browser cache so the change is updated...

By the way, I change the theme by this way is not elegant. What about adding some choice box in the cell toolbar?

I could be an option... thinking about to better you to config all the multiple options available...

from rise.

badbye avatar badbye commented on July 30, 2024

well, I have tried many times, it still doesn't work.

I also tried to delete the entire folder "live_reveal-master" and i can still use the live_show. So simply edit the file custom.js and reload notebook is not enough, i think.

BTW: How to delete the browser cache? I use chrome and "ctrl + shift + delete" can be use to delete browser cache, do you mean that?

from rise.

damianavila avatar damianavila commented on July 30, 2024

Probably it is a cache issue... yes... you can access with that shortcut combination... but try this instead: http://stackoverflow.com/a/21287099 and let me know...

from rise.

badbye avatar badbye commented on July 30, 2024

I solved this problem.

After install the live_slideshow, it create a directory "profile_rise" in the ~/.ipython folder. I need to edit the custom.js in this folder, not the one in the "live_slideshow" folder, which i download and decompress from github.

vi ~/.ipython/profile_rise/static/custom/custom.js

change the "livereveal.parameters('simple', 'zoom')" to "livereveal.parameters('simple', 'linear')".

Then, reload notebook, works.

Wow, it's really troublesome.

from rise.

damianavila avatar damianavila commented on July 30, 2024

Do you download the extension from the github zip? how do you exactly installed the extension?
Glad you solve the issue, btw... just curious about how you get into this problem...

from rise.

badbye avatar badbye commented on July 30, 2024

yes, i download, decompress, and run :
python setup.py install

actually i also tried to reinstall it by runing the codes in the Installxxx.ipynb( i add some more codes in this file to delete the old one and reinstall, show you tomorrow).

from rise.

damianavila avatar damianavila commented on July 30, 2024

ok... thanks

from rise.

badbye avatar badbye commented on July 30, 2024
import os
import IPython.html.nbextensions as nbext

# download rise extension
nbext_name = "live_reveal"
version = "2.x"
url = "https://github.com/damianavila/" + nbext_name + "/archive/" + version + ".zip"
nbext.install_nbextension(url)

# relocate the extension in the nbextension folder
nbext_folder = os.path.join(nbext.get_ipython_dir(), "nbextensions")

install_folder = os.path.join(nbext_folder, nbext_name + "-" + version)
rise_folder =  os.path.join(install_folder, "livereveal")
!rm -r {os.path.join(nbext.get_ipython_dir(), "nbextensions/livereveal")}
!mv {rise_folder} {nbext_folder}

# create a rise profile and add the proper custom.js
!ipython profile create rise
custom_js = os.path.join(nbext_folder, nbext_name + "-" + version, "custom.js")
tgt = os.path.join(nbext.get_ipython_dir(), 'profile_rise', 'static', 'custom')
!mv {custom_js} {tgt}

# clean the mess
!rm -r {install_folder}

This is the codes in your Install_RJSE.ipynb, I just add one line:

!rm -r {os.path.join(nbext.get_ipython_dir(), "nbextensions/livereveal")}

Now I know what's going on. By running:

python setup.py install

It copy the your static(which used to change the theme) to the profile_default folder.

By running the codes in the Install_RJSE.ipynb:
It copy the your static(which used to change the theme) to the profile_rise folder. That's why this file said i need to run

ipython notebook --profile=rise

Go back to the problem. After downloading the file live_reveal-master, I run both codes to install. In order to change the theme, edit the custom.js in the downloading folder doesn't work, cause it was copied to "profile_default/static/custom/". So i need to edit:

vi ~/.ipython/profile_default/static/custom/custom.js

not

vi ~/live_reveal-master/custom.js

Right?

from rise.

damianavila avatar damianavila commented on July 30, 2024

OH... sorry for never answering to your question... somewhat I missed this thread.

Right?

Yes, you could use python setup.py install --develop to link the live reveal master with the default profile for quick development...

Closing here because it seems you solve the issue... reopen it if it is not the case.

from rise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.