Back to home page

EIC code displayed by LXR

 
 

    


Warning, /pyjano/tests/pyjano.ipynb is written in an unsupported language. File is not indexed.

0001 {
0002  "cells": [
0003   {
0004    "cell_type": "code",
0005    "execution_count": 2,
0006    "metadata": {},
0007    "outputs": [
0008     {
0009      "data": {
0010       "application/vnd.jupyter.widget-view+json": {
0011        "model_id": "a2305668aadb488bb322473bbb3a5468",
0012        "version_major": 2,
0013        "version_minor": 0
0014       },
0015       "text/plain": [
0016        "HTML(value='\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-4\">\\n            <div class=\"card mb-4 shado…"
0017       ]
0018      },
0019      "metadata": {},
0020      "output_type": "display_data"
0021     }
0022    ],
0023    "source": [
0024     "from pyjano.jana import Jana\n",
0025     "jana = Jana()\n",
0026     "jana.plugins_gui()\n",
0027     "#jana.run()"
0028    ]
0029   },
0030   {
0031    "cell_type": "code",
0032    "execution_count": null,
0033    "metadata": {},
0034    "outputs": [],
0035    "source": []
0036   },
0037   {
0038    "cell_type": "code",
0039    "execution_count": null,
0040    "metadata": {},
0041    "outputs": [],
0042    "source": [
0043     "jana.start_gui()"
0044    ]
0045   },
0046   {
0047    "cell_type": "code",
0048    "execution_count": 4,
0049    "metadata": {},
0050    "outputs": [
0051     {
0052      "data": {
0053       "application/vnd.jupyter.widget-view+json": {
0054        "model_id": "64a557096d724615998bdfe6c5cd8864",
0055        "version_major": 2,
0056        "version_minor": 0
0057       },
0058       "text/plain": [
0059        "Button(description='Click me', icon='check', style=ButtonStyle(), tooltip='Description')"
0060       ]
0061      },
0062      "metadata": {},
0063      "output_type": "display_data"
0064     },
0065     {
0066      "data": {
0067       "application/vnd.jupyter.widget-view+json": {
0068        "model_id": "64a557096d724615998bdfe6c5cd8864",
0069        "version_major": 2,
0070        "version_minor": 0
0071       },
0072       "text/plain": [
0073        "Button(description='Click me', icon='check', style=ButtonStyle(), tooltip='Description')"
0074       ]
0075      },
0076      "metadata": {},
0077      "output_type": "display_data"
0078     }
0079    ],
0080    "source": [
0081     "from ipywidgets import Button, IntProgress, HBox\n",
0082     "b = Button(\n",
0083     "            value=False,\n",
0084     "            description='Click me',\n",
0085     "            disabled=False,\n",
0086     "            button_style='',  # 'success', 'info', 'warning', 'danger' or ''\n",
0087     "            tooltip='Description',\n",
0088     "            icon='check'\n",
0089     "        )\n",
0090     "\n",
0091     "display(b)\n",
0092     "b"
0093    ]
0094   },
0095   {
0096    "cell_type": "code",
0097    "execution_count": 1,
0098    "metadata": {},
0099    "outputs": [
0100     {
0101      "data": {
0102       "application/vnd.jupyter.widget-view+json": {
0103        "model_id": "4e23849a72574ce388bd6ebd6708fe5b",
0104        "version_major": 2,
0105        "version_minor": 0
0106       },
0107       "text/plain": [
0108        "HelloWorld()"
0109       ]
0110      },
0111      "metadata": {},
0112      "output_type": "display_data"
0113     }
0114    ],
0115    "source": [
0116     "from jana_widget import HelloWorld\n",
0117     "\n",
0118     "h = HelloWorld()\n",
0119     "display(h)\n"
0120    ]
0121   },
0122   {
0123    "cell_type": "code",
0124    "execution_count": 6,
0125    "metadata": {},
0126    "outputs": [
0127     {
0128      "data": {
0129       "application/javascript": [
0130        "define('email_widget', [\"@jupyter-widgets/base\"], function(widgets) {\n",
0131        "    \n",
0132        "});\n"
0133       ],
0134       "text/plain": [
0135        "<IPython.core.display.Javascript object>"
0136       ]
0137      },
0138      "metadata": {},
0139      "output_type": "display_data"
0140     }
0141    ],
0142    "source": [
0143     "%%javascript\n",
0144     "define('email_widget', [\"@jupyter-widgets/base\"], function(widgets) {\n",
0145     "    \n",
0146     "});"
0147    ]
0148   },
0149   {
0150    "cell_type": "code",
0151    "execution_count": 1,
0152    "metadata": {},
0153    "outputs": [
0154     {
0155      "data": {
0156       "application/vnd.jupyter.widget-view+json": {
0157        "model_id": "522408f920cf4593b2971ae0ff159bf0",
0158        "version_major": 2,
0159        "version_minor": 0
0160       },
0161       "text/plain": [
0162        "Text(value='hello')"
0163       ]
0164      },
0165      "metadata": {},
0166      "output_type": "display_data"
0167     }
0168    ],
0169    "source": [
0170     "import ipywidgets\n",
0171     "ipywidgets.Text(\"hello\")"
0172    ]
0173   },
0174   {
0175    "cell_type": "code",
0176    "execution_count": null,
0177    "metadata": {},
0178    "outputs": [],
0179    "source": []
0180   }
0181  ],
0182  "metadata": {
0183   "kernelspec": {
0184    "display_name": "Python 3",
0185    "language": "python",
0186    "name": "python3"
0187   },
0188   "language_info": {
0189    "codemirror_mode": {
0190     "name": "ipython",
0191     "version": 3
0192    },
0193    "file_extension": ".py",
0194    "mimetype": "text/x-python",
0195    "name": "python",
0196    "nbconvert_exporter": "python",
0197    "pygments_lexer": "ipython3",
0198    "version": "3.7.3"
0199   }
0200  },
0201  "nbformat": 4,
0202  "nbformat_minor": 4
0203 }