Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Sharing output without the code #19

Closed
larsrinn opened this issue Jun 16, 2017 · 2 comments
Closed

Sharing output without the code #19

larsrinn opened this issue Jun 16, 2017 · 2 comments

Comments

@larsrinn
Copy link
Contributor

Is it possible to save a notebook to an html file without including the code? I can think of many cases where you want to show only the results but keep the way how they were obtained private

@sernst
Copy link
Owner

sernst commented Jun 20, 2017

Yes, this is definitely a feature I've wanted to add for a while and is on the roadmap.

@larsrinn
Copy link
Contributor Author

So, because I needed this feature quickly, I tried tackling it myself. The approach I used was adding a new display-variable in the cauldron.json file:

{
[...]
  "summary": "[...]",
  "title": "[...]",
  "display": {
    "code": false,
    "errors": false
  }
}

Then I used these information in ProjectStep.dumps to decide whether the code or the error messages should be rendered: larsrinn@b4b5ab0

What do you think about that approach? Features that it doesn't support yet, that were nice, are:

  • Being able to decide whether you want to display the code for each step individually
  • Switching between displaying and hiding the code without having to rerun the step

@sernst sernst closed this as completed May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants