2016-07-07 98 views
2

私のジュピターのノートブックでは、好きな角括弧が自動的に完成します。ipython qtconsoleで角括弧の自動補完を有効にするには

端末に接続してjupyter qtconsoleを実行すると、コンソールが開きます。これはこのバージョンです:

Jupyter QtConsole 4.2.1 Python 2.7.11 | Anaconda 2.1.0(32-bit)| (デフォルト、2015年12月6日、18:08:45)詳細については、「著作権」、「クレジット」または 「ライセンス」と入力してください。

IPython 4.2.0 - 強化された対話型Python。

qtconsoleの角かっこでは、二重引用符は使用されません。私はそれらをオンにすることはできますか?

I持って、次のファイル:custom.js
/home/myname/.jupyter/custom/custom.js
/home/jason/.ipython/profile_default/static/custom/custom.js

私は以下の持っている - 私は、オートコンプリートの動作を取得するために、これらのファイルに追加することができますか?アナコンダ4.4.0(64ビット)| |

// leave at least 2 line with only a star on it below, or doc generation fails 
/** 
* 
* 
* Placeholder for custom user javascript 
* mainly to be overridden in profile/static/custom/custom.js 
* This will always be an empty file in IPython 
* 
* User could add any javascript in the `profile/static/custom/custom.js` file 
* (and should create it if it does not exist). 
* It will be executed by the ipython notebook at load time. 
* 
* Same thing with `profile/static/custom/custom.css` to inject custom css into the notebook. 
* 
* Example : 
* 
* Create a custom button in toolbar that execute `%qtconsole` in kernel 
* and hence open a qtconsole attached to the same kernel as the current notebook 
* 
* $([IPython.events]).on('app_initialized.NotebookApp', function(){ 
*  IPython.toolbar.add_buttons_group([ 
*   { 
*     'label' : 'run qtconsole', 
*     'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons 
*     'callback': function() { 
*      IPython.notebook.kernel.execute('%qtconsole') 
*     } 
*   } 
*   // add more button here if needed. 
*   ]); 
* }); 
* 
* Example :autoCloseBrackets: true, 
* 
* Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)]);` 
* to load custom script into the notebook. 
* 
* // to load the metadata ui extension example. 
* $.getScript('/static/notebook/js/celltoolbarpresets/example.js'); 
* // or 
* // to load the metadata ui extension to control slideshow mode/reveal js for nbconvert 
* $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js'); 
* 
* 
* @module IPython 
* @namespace IPython 
* @class customjs 
* @static 
*/ 

答えて

0

私は、このバージョン

Jupyter QtConsole 4.3.0 のPython 3.6.1を使用しています(デフォルト、May 11 2017、13:25:24)[MSC v.1900 64ビット(AMD64)]

Windowsの場合、オートコンプリートがうまく動作します。 タブを押すと、linuxと同様に利用可能なオプションが表示されます。

関連する問題