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

Enforce (or not) slide at the first cell #29

Closed
damianavila opened this issue Jul 24, 2014 · 11 comments · Fixed by #59
Closed

Enforce (or not) slide at the first cell #29

damianavila opened this issue Jul 24, 2014 · 11 comments · Fixed by #59

Comments

@damianavila
Copy link
Owner

From #26:

I'm running into issues with trying to "skip" cells in slideshows with live_reveal. First, if you try to skip the very first fragment (e.g. if it contains import statements, etc.), the cell is not skipped, and the state of the cell is switched to "slide" from "skip" automatically.
This is a design decision because a lot of people could forget to setup the first cell to show as an slide... but you are right about some uses cases where is good to hide the first (or more) cells... I think I have to re-evaluate this decision or come up with a better solution...

@indranilsinharoy
Copy link

I think that the "visibility" of any cell shouldn't be enforced, and the cells should behave as expected i.e. if the user has set a cell (first or not) to be "skipped", it should be skipped (it also means, that if someone has forgotten to mark a cell as "skipped" that he/she intended to skip, should be visible in the slide show). In my mind, this is an expected and deterministic behavior. Else, we have to always remember some "special" use-case/ behavior of some special cells. I really don't think any cell should be given special status by default.

@damianavila
Copy link
Owner Author

I think you ideas are valuable... and I think right now I am little incline to change the behaviour into no enforce the first slide. I will keep this one opened for a little bit so people who want to give their thoughts can do it... then we can make the change.

@indranilsinharoy
Copy link

@damianavila absolutely!! By the way, I wanted to thank you, for creating this. I am very happy that this tool is available, and I hope in the near future, this will evolve, and will be integrated into IPython in a better way. I am going to do my PhD thesis proposal within a month, and I am planning to use this tool.
Regards.

@damianavila
Copy link
Owner Author

You are welcome @indranilsinharoy. I hope we can make this better in the future... let's see how far we can go 😉
BTW, very grateful you will use this tool in your proposal 👍

@jmshea
Copy link

jmshea commented Aug 4, 2014

I would also ask that you not force the first cell to be a slide. I often want to take an existing research notebook and convert it into a slideshow. My first cell is almost always a pile of imports and %matplotlib inline...

@nlsn
Copy link

nlsn commented Aug 7, 2014

Therefore the first cell should be the title slide.

It's important to put information in a coherent order for the reader.

;)

On Mon, Aug 4, 2014 at 8:49 AM, jmshea notifications@github.com wrote:

I would also ask that you not force the first cell to be a slide. I often
want to take an existing research notebook and convert it into a slideshow.
My first cell is almost always a pile of imports and %matplotlib inline...


Reply to this email directly or view it on GitHub
#29 (comment)
.

@jmshea
Copy link

jmshea commented Aug 7, 2014

The first slide should be a title slide. The imports are set to Skip. Its important to use the capabilities of the slideshow to only show the audience what is needed for the presentation ;-)

@damianavila
Copy link
Owner Author

Yes, I think we need to avoid the enforcing... I will update the code base with some fixes this weekend and I will make a new point release. Thanks for the discussion.

@damianavila
Copy link
Owner Author

Just to give an update, I still think the same about this, targeting to 3.x compatibility.

@takluyver
Copy link
Contributor

FWIW, I just ran into this and had a WTF moment - I wanted some imports at the top of the notebook so I'd remember to run them before going into presentation mode, but they would be hidden in presentation mode.

Though I can also see that it would be surprising if you went into slide mode and were missing content unexpectedly.

Perhaps automatically make the first cell 'slide' if it doesn't have a slide type set, but if the user sets the slide type to 'skip', assume they mean it.

takluyver added a commit to takluyver/live_reveal that referenced this issue Feb 12, 2015
takluyver added a commit to takluyver/live_reveal that referenced this issue Feb 12, 2015
@damianavila
Copy link
Owner Author

Perhaps automatically make the first cell 'slide' if it doesn't have a slide type set, but if the user sets the slide type to 'skip', assume they mean it.

Seems a good compromise...

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

Successfully merging a pull request may close this issue.

5 participants