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

Slide type UI #7460

Open
pwsiegel opened this issue Nov 2, 2019 · 6 comments
Open

Slide type UI #7460

pwsiegel opened this issue Nov 2, 2019 · 6 comments
Milestone

Comments

@pwsiegel
Copy link

pwsiegel commented Nov 2, 2019

I just discovered the jupyterlab feature which allows one to export a notebook as a reveal.js presentation, and this is absolutely amazing. I'm almost ready to go hog wild and start using this as my standard tool for writing presentations, but there are a couple UI issues that give me pause:

  • There do not appear to be keyboard shortcuts for changing the slide type
  • It is not possible to determine the slide type of a cell without selecting it

Are there any workarounds for these? Does anyone with experience making Jupyter extensions have intuition for how hard it would be to add these features as an extension?

@jasongrout
Copy link
Contributor

Are there any workarounds for these?

Not right now.

It is not possible to determine the slide type of a cell without selecting it

There is other discussion about tags not being visible without selecting the cell. This won't be trivial to fix right now. Basically, we'd need to agree on how to change the ux to indicate cell tags inline with the cells.

There do not appear to be keyboard shortcuts for changing the slide type

This should be fairly straightforward to do in an extension, i.e., make a new command that gets the current cell and adds or changes the cell metadata. Then bind a keyboard shortcut to that command.

We should have a command for changing cell metadata in core, I think. Then it would be easy to make a keyboard shortcut for invoking that command.

@jasongrout jasongrout added this to the Future milestone Nov 4, 2019
@jasongrout
Copy link
Contributor

There is other discussion about tags not being visible without selecting the cell.

This is at #7449

@pwsiegel
Copy link
Author

pwsiegel commented Nov 4, 2019

Thank you for your response! I might have a go at adding keyboard shortcuts via an extension - that alone would go a long way.

As I have continued to play around with the "export as reveal.js" feature, I've noticed a few other bugs / nice-to-have requests. Before I raise any additional issues, is there already any work underway to improve this part of the system?

@jasongrout
Copy link
Contributor

I don't know of anyone working on improving the slides per se, but as you see from the cell-tags extension and discussion, people are working on improving tagging cells.

@jasongrout
Copy link
Contributor

We should have a command for changing cell metadata in core, I think.

I think the way I would (at least start) doing this is making a command that gets the selected cells in the current notebook and takes as args the metadata to add/delete/change, and does the necessary changes.

Then you can make a keyboard shortcut with the command and appropriate args to change the cell metadata as you wish.

@sglyon
Copy link

sglyon commented Aug 28, 2020

I went ahead and did this here: https://www.npmjs.com/package/jupyterlab-slide-mode-keyboard-shortcuts

@palewire please check it out and let me know how it works for you

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

No branches or pull requests

3 participants