Git Product home page Git Product logo

Comments (14)

damianavila avatar damianavila commented on July 30, 2024

I agree... I thought about this before... we should find a way to provide the user with a nice UI in the notebook to config a lot of things... probably the notebook metadata is the place to embed this info... maybe under a slideshow_config key, or something else...

from rise.

juliohm avatar juliohm commented on July 30, 2024

Currently, what is the startup file responsible for theme configuration? I tried adding the code in the README under the .ipython/profile_julia/startup/ directory but it didn't work. I think it's being executed before RISE, is that correct?

from rise.

damianavila avatar damianavila commented on July 30, 2024

You only need to run the snippet of code in the README once... with a python kernel... or in any python interpreter (we prefer ipython ;-). This will generate a JSON file in your default profile which stores the config you want, check .ipython/profile_default/nbconfig/livereveal.json

So you have to be aware that:

  1. Use the default profile of modify the snippet to store the config in your desired profile (you can pass a profile parameter to the ConfigManager)
  2. You could potentially write the snippet in Julia to write the needed config file, but it is easy just to use the python one...

Hope it helps and let me know if you need more assistance...

from rise.

juliohm avatar juliohm commented on July 30, 2024

@damianavila, thank you for the clarification. The file is created under .ipython/profile_default/nbconfig/livereveal.json but I cannot see any change when using the Python kernel and default IPyhon profile.

I passed a profile parameter to the ConfigManager but it doesn't affect the files under .ipython/profile_julia/. What I'm doing wrong?

from rise.

takluyver avatar takluyver commented on July 30, 2024

I think you need to pass it a path to profile_dir instead of just a profile name. We're getting rid of named profiles when we split the notebook parts to the name Jupyter anyway.

from rise.

juliohm avatar juliohm commented on July 30, 2024

Thanks @takluyver, I'm waiting for this transition to happen. The thing is that even for the Python kernel, the theme change is not taking effect.

from rise.

takluyver avatar takluyver commented on July 30, 2024

How are you starting the notebook? If you're running it with the julia profile, it won't load any config from the default profile. Kernels do not affect this.

from rise.

juliohm avatar juliohm commented on July 30, 2024

I'm starting the notebook as usual with ipython notebook assuming the default reveal.js themes are installed somewhere.

I can confirm the livereveal.json is under the profile_default/nbconfig directory.

from rise.

damianavila avatar damianavila commented on July 30, 2024

Can you post the content of the livereveal.json file?

from rise.

juliohm avatar juliohm commented on July 30, 2024

Sure, the content is:

{
  "theme": "black",
  "start_slideshow_at": "selected"
}

from rise.

damianavila avatar damianavila commented on July 30, 2024

Well, can you try with other theme like sky or serif, the black themes are not compatible with RISE yet beceause of conflicting css between reveal.js css and ipython css...

from rise.

juliohm avatar juliohm commented on July 30, 2024

from rise.

damianavila avatar damianavila commented on July 30, 2024

All the "whity" ones (simple, sky, serif, etc) should work without major problems... the "darker" ones needs probably some custom css to make them work...

from rise.

damianavila avatar damianavila commented on July 30, 2024

#156 closed this one.

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.