From fb6d1f6bc3e6e6ddcba276f8cbc63fe1556b0e36 Mon Sep 17 00:00:00 2001 From: Tom Malone Date: Sat, 24 Oct 2015 20:30:02 -0400 Subject: [PATCH] Added the iJavaScript kernel, so now I can create JavaScript notebooks, in addition to Python notebooks. This is so awesome. How have I not been using iPython Notebooks for years already? --- .../iJavaScript_Hello_World-checkpoint.ipynb | 6 + iJavaScript_Hello_World.ipynb | 110 ++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 .ipynb_checkpoints/iJavaScript_Hello_World-checkpoint.ipynb create mode 100644 iJavaScript_Hello_World.ipynb diff --git a/.ipynb_checkpoints/iJavaScript_Hello_World-checkpoint.ipynb b/.ipynb_checkpoints/iJavaScript_Hello_World-checkpoint.ipynb new file mode 100644 index 0000000..286dcb3 --- /dev/null +++ b/.ipynb_checkpoints/iJavaScript_Hello_World-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/iJavaScript_Hello_World.ipynb b/iJavaScript_Hello_World.ipynb new file mode 100644 index 0000000..690ef0b --- /dev/null +++ b/iJavaScript_Hello_World.ipynb @@ -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": [ + "" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "$$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 +}