Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "cells": [
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# Test notebook\n",
- "\n",
- "Below is a normal cell with input and output:"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Hello\n"
- ]
- }
- ],
- "source": [
- "print(\"Hello\")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "Below is a cell with a tag 'remove-input':"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 2,
- "metadata": {
- "tags": [
- "remove-input"
- ]
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Hello from a hidden cell\n"
- ]
- }
- ],
- "source": [
- "print(\"Hello from a hidden cell\")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "The input of that cell is hidden by setting:\n",
- "\n",
- "```python\n",
- "c.TagRemovePreprocessor.remove_input_tags = {'remove-input'}\n",
- "```\n",
- "\n",
- "in `jupyter_nbconvert_config.py`\n",
- "\n",
- "See [./test-skip.md](./test-skip.md) for the markdown output of\n",
- "\n",
- " jupyter nbconvert --to markdown test-skip.ipynb"
- ]
- }
- ],
- "metadata": {
- "celltoolbar": "Tags",
- "kernelspec": {
- "display_name": "Python 3",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 3
- },
- "file_extension": ".py",
- "mimetype": "text/x-python",
- "name": "python",
- "nbconvert_exporter": "python",
- "pygments_lexer": "ipython3",
- "version": "3.7.2"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 2
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement