mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Adding .ipynb (Jupyter Notebook) extension to python, and a sample file
This commit is contained in:
@@ -2783,6 +2783,7 @@ Python:
|
|||||||
- .tac
|
- .tac
|
||||||
- .wsgi
|
- .wsgi
|
||||||
- .xpy
|
- .xpy
|
||||||
|
- .ipynb
|
||||||
filenames:
|
filenames:
|
||||||
- BUILD
|
- BUILD
|
||||||
- SConscript
|
- SConscript
|
||||||
|
|||||||
57
samples/Python/JupyterNotebook.ipynb
Normal file
57
samples/Python/JupyterNotebook.ipynb
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"# HELLO LINGUIST\n",
|
||||||
|
"\n",
|
||||||
|
"** This is a sample notebook to be used by [Linguist](https://github.com/github/linguist) ** "
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 5,
|
||||||
|
"metadata": {
|
||||||
|
"collapsed": false,
|
||||||
|
"scrolled": false
|
||||||
|
},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"Here is the content: information\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"def showContent(content):\n",
|
||||||
|
" print(\"Here is the content: \" + content)\n",
|
||||||
|
"\n",
|
||||||
|
"showContent(\"information\")"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"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.4.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 0
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user