用原子运行jupyter ipynb

时间:2016-10-27 09:00:57

标签: jupyter-notebook atom-editor

我为atom from here安装了jupyter packageatom。现在,如果我从atom打开旧的ipython笔记本,它就不会将其显示为笔记本。这是atom

中旧笔记本的样子
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "#importing all the libraries\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import sys \n",
    "sys.path.append(\"/Users/myname/Documents/things")\n",
    "import quadedge as qd\n",
    "sys.path.append(\"/Users/myname/Documents/otherthings\")\n",
    "import latdevcode as latdev\n",
    "import cendevcode as latgen\n",
    "import matplotlib.pyplot as plt"
   ]
  },   

我错过了什么吗?如何在jupyter notebook中正确地将导航器atom正确打开?

1 个答案:

答案 0 :(得分:8)

它甚至不是旧笔记本。我刚刚安装了python(3.6.3)和jupyter(4.3.0),通过Jupyter笔记本CLI(nteract)创建了几个笔记本,但是当我尝试在atom中打开它们时,我也得到了一个JSON版本。

经过一番研究后,我了解到氢气只是使用 jupyter来启用纯文本文件中的内联代码执行(例如 sqoop import \ -Dmapred.job.name='sqoop sequencefile' \ --connect jdbc:mysql://ms.itversity.com:3306/retail_db \ --username retail_user \ --password itversity \ --table orders --target-dir /user/mamatucci/sqoop/orders/as-sequencefile \ -m 2 \ --delete-target-dir \ --as-sequencefile .py) , 实际上不支持.R个文件,更重要的是 维护者没有计划或希望支持.ipynb

的引用:
- https://github.com/nteract/hydrogen/issues/75
- https://github.com/nteract/hydrogen/issues/1154