GithubHelp home page GithubHelp logo

Comments (6)

multimeric avatar multimeric commented on July 30, 2024

This seems to be related to the top property of the <section id="slide-0-0"> element. It must be being calculated wrongly. In my example, it's initially set to 538.3px, which correctly puts it in the middle of the page. Then when I run the cell, it changes to 509.8px, so it does update, but not very much. Then finally when I re-open the slideshow, it has top: 0px. I wonder if, because this output is printed to stdout progressively by the command, Jupyter calculates the new location of the cell before all of the output has all been produced, and then stops updating?

Does anyone have any idea what part of RISE calculates this offset, and where to amend this behaviour?

from rise.

parmentelat avatar parmentelat commented on July 30, 2024

hiya

I remember having struggled with this behaviour at the time
IIRC its root cause is some sort of race condition between the various engines at work in the system, namely the execution of the cell by jupyter, its rendering by codemirror, and reveal's own internal machinery
I can't be more accurate at this point because it was all quite a while ago, but I also remember having added a configurable timer that you can tweak in the configuration area of RISE
you may want to try and enlarge this a bit

image

from rise.

multimeric avatar multimeric commented on July 30, 2024

Hi, thanks for the advice! Unfortunately I tweaked this number up to something obscenely high (2000 ms), and it still didn't fix the issue. I can verify that the customized config was being loaded because I also enabled autolaunch which was working correctly.

from rise.

multimeric avatar multimeric commented on July 30, 2024

I think I might have identified a bug in RISE here, by debugging the JS as it executes in my browser. The parameter that you refer to seems to configure the complete_config.aync_timeout variable, but the variable that is used to determine the timeout is called complete_config.sync_timeout:

setTimeout(()=>Reveal.sync(), complete_config.sync_timeout);

from rise.

parmentelat avatar parmentelat commented on July 30, 2024

is this something we can close now with your 2 PRs merged in 5.7.2.dev2 ?

from rise.

multimeric avatar multimeric commented on July 30, 2024

In my opinion neither of them are a "true" fix, they're both just workarounds. But if you would like to close this issue you may.

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.