mkdocs-jupyter icon indicating copy to clipboard operation
mkdocs-jupyter copied to clipboard

nice tool, any configuration could hide python code, only display output?

Open leonyi168 opened this issue 2 years ago • 2 comments

as the title.

thanks

leonyi168 avatar Jun 14 '22 13:06 leonyi168

Not currently but we should add an option to do that.

danielfrg avatar Jun 14 '22 17:06 danielfrg

I did something like this: https://oceanumeric.github.io/blog/2022/jupyter-style/

oceanumeric avatar Jul 17 '22 22:07 oceanumeric

With show_input: False and no_input: True it does not include the inputs anymore.

mikegerber avatar Feb 02 '23 17:02 mikegerber

Yeah the options are very close to what I want, but there doesn't seem to be an option for just doing exclude_output_prompt=False and exclude_input_prompt=False but exclude_input=False so we see the input code.

https://github.com/ggbaro/mkdocs-jupyter/blob/1d0d859e4773bd6cc837a9f0cfb79eea5a8f76a1/mkdocs_jupyter/nbconvert2.py#L187

scottstanie avatar Feb 06 '23 21:02 scottstanie

Closing in favor of #170

danielfrg avatar Sep 24 '23 05:09 danielfrg