Skip to content

Commit

Permalink
Added the iJavaScript kernel, so now I can create JavaScript notebook…
Browse files Browse the repository at this point in the history
…s, in addition to Python notebooks. This is so awesome. How have I not been using iPython Notebooks for years already?
  • Loading branch information
Tom Malone committed Oct 25, 2015
1 parent 593d9f6 commit fb6d1f6
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/iJavaScript_Hello_World-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}
110 changes: 110 additions & 0 deletions iJavaScript_Hello_World.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"'Hello, World!'"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(function() {\n",
" global.myGlobalProperty = \"Hello, World!\";\n",
"})()\n",
"global.myGlobalProperty;"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"'Hello, World!'"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Function.apply"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg><rect width=80 height=80 style='fill: orange;'/></svg>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"$$svg$$ = \"<svg><rect width=80 height=80 style='fill: orange;'/></svg>\";"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"undefined"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"var message = \"This is an actual Javascript Notebook running in Jupyter. Incredible!\";"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Javascript (Node.js)",
"language": "javascript",
"name": "javascript"
},
"language_info": {
"file_extension": "js",
"mimetype": "application/javascript",
"name": "javascript",
"version": "0.10.36"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit fb6d1f6

Please sign in to comment.