Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# Test notebook\n",
  8. "\n",
  9. "Below is a normal cell with input and output:"
  10. ]
  11. },
  12. {
  13. "cell_type": "code",
  14. "execution_count": 1,
  15. "metadata": {},
  16. "outputs": [
  17. {
  18. "name": "stdout",
  19. "output_type": "stream",
  20. "text": [
  21. "Hello\n"
  22. ]
  23. }
  24. ],
  25. "source": [
  26. "print(\"Hello\")"
  27. ]
  28. },
  29. {
  30. "cell_type": "markdown",
  31. "metadata": {},
  32. "source": [
  33. "Below is a cell with a tag 'remove-input':"
  34. ]
  35. },
  36. {
  37. "cell_type": "code",
  38. "execution_count": 2,
  39. "metadata": {
  40. "tags": [
  41. "remove-input"
  42. ]
  43. },
  44. "outputs": [
  45. {
  46. "name": "stdout",
  47. "output_type": "stream",
  48. "text": [
  49. "Hello from a hidden cell\n"
  50. ]
  51. }
  52. ],
  53. "source": [
  54. "print(\"Hello from a hidden cell\")"
  55. ]
  56. },
  57. {
  58. "cell_type": "markdown",
  59. "metadata": {},
  60. "source": [
  61. "The input of that cell is hidden by setting:\n",
  62. "\n",
  63. "```python\n",
  64. "c.TagRemovePreprocessor.remove_input_tags = {'remove-input'}\n",
  65. "```\n",
  66. "\n",
  67. "in `jupyter_nbconvert_config.py`\n",
  68. "\n",
  69. "See [./test-skip.md](./test-skip.md) for the markdown output of\n",
  70. "\n",
  71. " jupyter nbconvert --to markdown test-skip.ipynb"
  72. ]
  73. }
  74. ],
  75. "metadata": {
  76. "celltoolbar": "Tags",
  77. "kernelspec": {
  78. "display_name": "Python 3",
  79. "language": "python",
  80. "name": "python3"
  81. },
  82. "language_info": {
  83. "codemirror_mode": {
  84. "name": "ipython",
  85. "version": 3
  86. },
  87. "file_extension": ".py",
  88. "mimetype": "text/x-python",
  89. "name": "python",
  90. "nbconvert_exporter": "python",
  91. "pygments_lexer": "ipython3",
  92. "version": "3.7.2"
  93. }
  94. },
  95. "nbformat": 4,
  96. "nbformat_minor": 2
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement