From 6ccea9bb2e5345eb0ec7a1e8805b2264fc71f262 Mon Sep 17 00:00:00 2001 From: Chris Lenk Date: Wed, 4 Oct 2017 09:08:53 -0400 Subject: [PATCH] Default to Py3 kernel in Jupyter notebooks If no matching kernelspec is found a kernel with a matching `language` ("python") will be used (https://ipython.org/ipython-doc/3/development/kernels.html). --- docs/guide/DataStore, CompositeDataSource, Filters.ipynb | 4 ++-- docs/guide/FileSystem.ipynb | 4 ++-- docs/guide/Memory.ipynb | 4 ++-- docs/guide/TAXIICollection.ipynb | 8 +++++--- docs/guide/creating.ipynb | 4 ++-- docs/guide/custom.ipynb | 4 ++-- docs/guide/environment.ipynb | 4 ++-- docs/guide/markings.ipynb | 4 ++-- docs/guide/parsing.ipynb | 4 ++-- docs/guide/serializing.ipynb | 4 ++-- docs/guide/versioning.ipynb | 4 ++-- 11 files changed, 25 insertions(+), 23 deletions(-) diff --git a/docs/guide/DataStore, CompositeDataSource, Filters.ipynb b/docs/guide/DataStore, CompositeDataSource, Filters.ipynb index 6f1e2e4..01f970a 100644 --- a/docs/guide/DataStore, CompositeDataSource, Filters.ipynb +++ b/docs/guide/DataStore, CompositeDataSource, Filters.ipynb @@ -210,9 +210,9 @@ ], "metadata": { "kernelspec": { - "display_name": "cti-python-stix2", + "display_name": "Python 3", "language": "python", - "name": "cti-python-stix2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/FileSystem.ipynb b/docs/guide/FileSystem.ipynb index 6a2b17d..9239131 100644 --- a/docs/guide/FileSystem.ipynb +++ b/docs/guide/FileSystem.ipynb @@ -497,9 +497,9 @@ ], "metadata": { "kernelspec": { - "display_name": "cti-python-stix2", + "display_name": "Python 3", "language": "python", - "name": "cti-python-stix2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/Memory.ipynb b/docs/guide/Memory.ipynb index 6fcb399..29daae6 100644 --- a/docs/guide/Memory.ipynb +++ b/docs/guide/Memory.ipynb @@ -256,9 +256,9 @@ ], "metadata": { "kernelspec": { - "display_name": "cti-python-stix2", + "display_name": "Python 3", "language": "python", - "name": "cti-python-stix2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/TAXIICollection.ipynb b/docs/guide/TAXIICollection.ipynb index 1180c74..48b4656 100644 --- a/docs/guide/TAXIICollection.ipynb +++ b/docs/guide/TAXIICollection.ipynb @@ -2387,7 +2387,9 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "collapsed": true + }, "outputs": [], "source": [ "from stix2 import TAXIICollectionSink, ThreatActor\n", @@ -2482,9 +2484,9 @@ ], "metadata": { "kernelspec": { - "display_name": "cti-python-stix2", + "display_name": "Python 3", "language": "python", - "name": "cti-python-stix2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/creating.ipynb b/docs/guide/creating.ipynb index 2c0f132..6cfea7f 100644 --- a/docs/guide/creating.ipynb +++ b/docs/guide/creating.ipynb @@ -869,9 +869,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/custom.ipynb b/docs/guide/custom.ipynb index 0626692..2254fa8 100644 --- a/docs/guide/custom.ipynb +++ b/docs/guide/custom.ipynb @@ -916,9 +916,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/environment.ipynb b/docs/guide/environment.ipynb index d2a0de2..a9184a1 100644 --- a/docs/guide/environment.ipynb +++ b/docs/guide/environment.ipynb @@ -723,9 +723,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/markings.ipynb b/docs/guide/markings.ipynb index 7e512a9..5c6262d 100644 --- a/docs/guide/markings.ipynb +++ b/docs/guide/markings.ipynb @@ -1292,9 +1292,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/parsing.ipynb b/docs/guide/parsing.ipynb index f645740..e991e0c 100644 --- a/docs/guide/parsing.ipynb +++ b/docs/guide/parsing.ipynb @@ -109,9 +109,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/serializing.ipynb b/docs/guide/serializing.ipynb index 8ca4460..8fcc19d 100644 --- a/docs/guide/serializing.ipynb +++ b/docs/guide/serializing.ipynb @@ -178,9 +178,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/docs/guide/versioning.ipynb b/docs/guide/versioning.ipynb index d38ba94..30ceb69 100644 --- a/docs/guide/versioning.ipynb +++ b/docs/guide/versioning.ipynb @@ -322,9 +322,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": {