2016-07-07 3 views
2

В моем ноутбуке jupyter скобки автоматически заполняются, что мне нравится.Как включить автозаполнение скобок в ipython qtconsole

Если я иду на терминал и запускаю jupyter qtconsole, тогда открывается моя консоль. Именно эта версия:

Jupyter QtConsole 4.2.1 Python 2.7.11 | Anaconda 2.1.0 (32-bit) | (по умолчанию, 6 декабря 2015 г., 18:08:45) Введите «copyright», «credits» или «лицензия» для получения дополнительной информации.

IPython 4.2.0 - усовершенствованный интерактивный Python.

В квадратных скобках qtconsole не автозаполняются - ни кавычки. Могу ли я включить их?

У меня есть следующие файлы:
/home/myname/.jupyter/custom/custom.js
/home/jason/.ipython/profile_default/static/custom/custom.js

В custom.js У меня есть ниже - я могу добавить к этим файлам, чтобы получить поведение автозаполнения?

// 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 | Anaconda 4.4.0 (64-разрядная версия) | (по умолчанию, 11 мая 2017, 13:25:24) [MSC v.1900 64 бит (AMD64)]

и автозаполнение работает отлично для меня на окнах. Попробуйте нажать вкладку, чтобы отобразить доступные параметры, как и linux.

 Смежные вопросы

  • Нет связанных вопросов^_^