Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to scrolling slides. #139

Merged
merged 1 commit into from
Sep 8, 2015
Merged

Conversation

damianavila
Copy link
Owner

Fixes #138

ping @swnesbitt, @jorisvandenbossche

to enable it, you need to have:

damian-S400CA :: ~/.jupyter/nbconfig :: 
$ pwd
/home/damian/.jupyter/nbconfig
damian-S400CA :: ~/.jupyter/nbconfig :: 
$ cat livereveal.json 
{
  "scroll": true
}

@jorisvandenbossche
Copy link
Contributor

I can confirm this works!

You now get a scrollbar on each slide so that the largest slide fits on it, but that is OK

@swnesbitt
Copy link

Awesome! Thanks

Sent from my iPhone

Steve Nesbitt, Associate Professor
Department of Atmospheric Sciences, University of Illinois at Urbana-Champaign
105 S. Gregory St.x-apple-data-detectors://1, MC223, Urbana, IL 61801-3070 USA
voice : +1.217.244.3740tel:+1.217.244.3740 fax : +1.217.244.1752tel:+1.217.244.1752
internet : snesbitt@illinois.edumailto:snesbitt@illinois.edu ; https://www.atmos.illinois.edu/people/snesbitt ; http://publish.illinois.edu/snesbitt

On Aug 25, 2015, at 5:03 AM, Joris Van den Bossche <notifications@github.commailto:notifications@github.com> wrote:

I can confirm this works!

You now get a scrollbar on each slide so that the largest slide fits on it, but that is OK


Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_damianavila_RISE_pull_139-23issuecomment-2D134544472&d=AwMCaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=oh_IyBh3p6AhkrNBZyzmmDfeXg2WKrzfthPLOoHreWM&m=T2lus9W4l_dBwo7WQWTnBRjIuXZGuxQAP9BxZ_VvXfc&s=ntvPFCYcaFZkZu608eSY-QEIrH179jIbXpc4eopEPlI&e=.

@damianavila
Copy link
Owner Author

You now get a scrollbar on each slide so that the largest slide fits on it, but that is OK

But IIRC, we had the same behavior before... put scroll bars in "one" specific slide IF the content is large than the view is not something we can do easily and probably involves modification in the core of Reveal.js itself (which was suggested to Reveal.js author but he is not interested to make it happen because conflict with other things).

@damianavila
Copy link
Owner Author

btw, thanks for testing, I will merge it soon.

damianavila added a commit that referenced this pull request Sep 8, 2015
Add config option to scrolling slides.
@damianavila damianavila merged commit d9f1c0d into master Sep 8, 2015
@damianavila damianavila deleted the hotfix/scrolling branch September 8, 2015 15:47
@spex66
Copy link

spex66 commented Sep 29, 2015

Sorry didn't get it to work, or maybe I've the wrong expectation?
I've set the 'scroll' to True by

from notebook.services.config import ConfigManager
cm = ConfigManager()
cm.update('livereveal', {
              'theme': 'serif',
              'transition': 'zoom',
              'start_slideshow_at': 'selected',
              'scroll': True,
})

I've checked the livereveal.json that the value is stored correctly.
I restarted the kernel :)

In my test case only the first cell is marked as "Slide", in reveal-mode I can see the other cells below.

But no way to scroll down.
I expect this to be a beginner problem, but happy to learn!
How can I scroll down in reveal mode on long pages?

Environment:

  • win10, latest Chrome, latest jupyter deployed on top of Anaconda 2.7 64bit

thx for your help
(=PA=)

@damianavila
Copy link
Owner Author

I've checked the livereveal.json that the value is stored correctly.

Can you paste the content here?

@spex66
Copy link

spex66 commented Sep 30, 2015

the command from IPython Notebook

from notebook.services.config import ConfigManager
cm = ConfigManager()
cm.update('livereveal', {
              'theme': 'serif',
              'transition': 'zoom',
              'start_slideshow_at': 'selected',
              'scroll': True,
})

Resulting .jupyter\nbconfig\livereveal.json

{
  "theme": "serif", 
  "transition": "zoom", 
  "start_slideshow_at": "selected", 
  "scroll": true
}

@spex66
Copy link

spex66 commented Sep 30, 2015

Don't ask why... scrolling is working today.
Same browser, and same tab as yesterday...

Now I struggle to get "theme":"night" to have any effect, still all white.
It seems that I miss a trigger or something like that, to reload or refresh the config?
This would be an explaination to the scroll and theme problem.

from notebook.services.config import ConfigManager
cm = ConfigManager()
cm.update('livereveal', {
              'theme': 'night',
              'transition': 'zoom',
              'start_slideshow_at': 'selected',
              'scroll': True,
})

The update of the livereveal.json file happens immediately after the above cm.update triggered.
Any idea, what is needed to get the change into effect on the next "ALT-r" action?

@spex66
Copy link

spex66 commented Sep 30, 2015

some CSS mess is going on... I tried to debug it in Chrome Dev Tools and it loads the correct theme CSS (like night.css) but fails to apply all styles, like background-color.
And I've reloaded the browser window several time to be sure to cleaned caches :)

The <h4> for examples is updated with "font-family" on switching themes... but the background-color refuses, something is negating the theme setting again.

But this looks like a CSS problem, and maybe not so much RISE?

@spex66
Copy link

spex66 commented Sep 30, 2015

OK this is my body-tag, where I checked which CSS contributes the background-color to:

<body class="notebook_app  ctb_global_show command_mode rise-enabled" data-project="" data-base-url="/" data-ws-url="" data-notebook-name="test.ipynb" data-notebook-path="test.ipynb" style="overflow-y: auto; overflow-x: hidden;">

The .rise-enabled setting in main.css

.rise-enabled {
  background-color: #fff;
...

is overriding / overruling the background-color from the theme like moon.css.
But now my CSS knowledge comes to a full stop :(

Is it only me, having this problem?

@damianavila
Copy link
Owner Author

Don't ask why... scrolling is working today.
Same browser, and same tab as yesterday...

Maybe a browser cache issue, browsers are very aggresive caching things...

Is it only me, having this problem?

Nop, the css problem with "darkish" themes is known... and was discussed previously, check here: #23, #51

@damianavila
Copy link
Owner Author

I have added a note at the README about this: #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants