emacs-ipython-notebook/Development Ideas.ipynb
John Miller a4c6892551 Support set-buffer-file-name
In support of fixing issues #46 and #47.
2015-05-15 23:23:56 -05:00

197 lines
3.5 KiB
Text

{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"tags": [
"worksheet-0"
]
},
"source": [
"# Adding Imenu Support"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"tags": [
"worksheet-0"
]
},
"source": [
"## Subheader"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"tags": [
"worksheet-0"
]
},
"source": [
"Seems to be a couple ways of doing this:\n",
"\n",
"1. Configuring a [imenu-generic-expression](http://emacswiki.org/emacs/ImenuMode#toc12) regex's.\n",
"\n",
"2. Redifining imenu-create-index ala python.el.\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [],
"source": [
"def func():\n",
" pass\n",
"\n",
"\n",
"class my_class(object):\n",
" def __init__(self):\n",
" pass\n",
"\n",
" def funcme(arg1):\n",
" pass\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"tags": [
"worksheet-0"
]
},
"source": [
"# Another Header"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [
{
"ename": "ZeroDivisionError",
"evalue": "division by zero",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m<ipython-input-2-05c9758a9c21>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;36m1\u001b[0m\u001b[1;33m/\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[1;31mZeroDivisionError\u001b[0m: division by zero"
]
}
],
"source": [
"1/0"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [],
"source": [
"import inspect"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1+1"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [
{
"data": {
"text/plain": [
"<module 'inspect' from 'C:\\\\Anaconda\\\\envs\\\\py34\\\\lib\\\\inspect.py'>"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"inspect"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"tags": [
"worksheet-0"
]
},
"outputs": [],
"source": []
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}