Irc-Unix.net

Главная | Actual Topics | Обратная связь | Guest Book | В избранное | Сделать домашней
Категории
 System & Utilities
 Unix News
 OS Emulator
 Developing
 Learning/Education
 Games
 Humour
Каталог статей
Все статьи

Antispam
Статьи
Биллу Гейтсу тоже предлагают избавиться ...
Вымогательство в борьбе со спамом
Календарь

December, 2017
ПнВтСрЧтПтСбВс
123
45678910
11121314151617
18192021222324
25262728293031
Опросы
Какой из этих ОС Вы отдаете большее предпочтение?

QNX
FreeBSD
Linux(any)
Solaris
Mac OS
Windows XP
Windows 2003
Что такое ОС? :)


Результаты
Другие опросы

Всего голосов: 325
Комментарии: 0
Ссылки

Архив Новостей
 December 2017 (4)
 November 2017 (15)
 October 2017 (19)
 September 2017 (18)
 August 2017 (13)
 February 2017 (14)
 January 2017 (19)
 December 2016 (16)
 November 2016 (16)
 October 2016 (21)
 September 2016 (18)
 August 2016 (16)
 July 2016 (16)
 June 2016 (20)
 May 2016 (18)
 April 2016 (15)
 March 2016 (22)
 February 2016 (17)
 January 2016 (15)
 December 2015 (15)
 November 2015 (22)
 October 2015 (20)
 September 2015 (17)
 August 2015 (25)
 July 2015 (20)
 June 2015 (23)
 May 2015 (21)
 April 2015 (17)
 March 2015 (19)
 February 2015 (9)
 January 2015 (23)
 December 2014 (9)
 November 2014 (13)
 October 2014 (12)
 September 2014 (18)
 August 2014 (20)
 July 2014 (10)
 June 2014 (12)
 May 2014 (12)
 April 2014 (10)
 March 2014 (22)
 February 2014 (10)
 January 2014 (8)
 December 2013 (26)
 November 2013 (53)
 October 2013 (40)
 September 2013 (48)
 August 2013 (63)
 July 2013 (56)
 June 2013 (52)
 May 2013 (49)
 April 2013 (67)
 March 2013 (74)
 February 2013 (63)
 January 2013 (62)
 December 2012 (62)
 November 2012 (66)
 October 2012 (68)
 September 2012 (48)
 August 2012 (75)
 July 2012 (60)
 June 2012 (71)
 May 2012 (69)
 April 2012 (85)
 March 2012 (86)
 February 2012 (90)
 January 2012 (81)
 December 2011 (103)
 November 2011 (118)
 October 2011 (74)
 September 2011 (2)
 June 2011 (110)
 May 2011 (118)
 April 2011 (111)
 March 2011 (112)
 February 2011 (101)
 January 2011 (119)
 December 2010 (117)
 November 2010 (118)
 October 2010 (131)
 September 2010 (117)
 August 2010 (226)
 July 2010 (351)
 June 2010 (305)
 May 2010 (319)
 April 2010 (343)
 March 2010 (329)
 February 2010 (311)
 January 2010 (312)
 December 2009 (266)
 November 2009 (156)
 July 2009 (101)
 June 2009 (279)
 May 2009 (365)
 April 2009 (348)
 March 2009 (347)
 February 2009 (323)
 January 2009 (318)
 December 2008 (237)
 November 2008 (155)
 October 2008 (334)
 September 2008 (310)
 August 2008 (343)
 July 2008 (362)
 June 2008 (322)
 May 2008 (591)
 April 2008 (1276)
 March 2008 (1658)
 February 2008 (250)
 January 2008 (6)
 November 2007 (1)
 September 2007 (1)
 June 2007 (1)
 May 2007 (1)
 March 2007 (1)
 January 2007 (2)
 December 2006 (1)
 October 2006 (2)
 September 2006 (1)
 August 2006 (2)

A rich python console and more in Kate editor

System & Utilities

I have done some improvements in the plugins: python_console_ipython, python_autocomplete, python_utils, js_utils, xml_pretty and django_utils. These plugins I added a month and a half ago (except python_console_ipython) to the kate repository. I have done two improvements and a new feature:

  • Now they work with Python2 and Python3 (except python_autocomplete, this only works with Python2, due pysmell dependence)
  • Now they have a configuration page (except python_autocomplete, this should not have configuration parameters)

Page Config Plugins

The new feature is the integration of the python_autocomplete and python_console_ipython plugins with the project plugin. The behaviour of these plugins depends of the loaded project. That is to say, the python_autocomplete plugin autocompletes with our project modules. Currently the kate community is working to add a new python autocomplete  using jedi (this will work with Python2 and Python3).

Python Autocomplete (with our modules)

And the python_console_ipython plugin has something that we can name the project console. A ipython shell with the python path of our project and with the environments variables that the project plugin needs.

IPython Console (converted in a django shell)

To use this we need to add in the project file (.kateproject) a new attribute named “python”, with this structure:

{
\"name\": \"MyProject\",
\"files\": [ { \"git\": 1 } ],
\"python\": {
\"extraPath\": [\"/python/path/1\",
\"/python/path/2\",
\"/python/path/n\"
],
\"environs\": {\"key\": \"value\"},
\"version\": \"3.2\"
}
}

I am a django developer, as we say in Django we can come to have a django shell (python manage.py shell) integrated in our editor. But this feature is a generic feature not tied to Django. This feature can be used by other Python developers. I have added only a specific feature to the django developers. If we set in the project file (.kateproject) the attribute projectType with the value Django, the ipython shell automatically loads the models and the settings like a shell_plus does.

{
\"name\": \"MyProject\",
\"files\": [ { \"hg\": 1 } ],
\"python\": {
\"extraPath\": [\"/python/path/1\",
\"/python/path/2\",
\"/python/path/n\"
],
\"environs\": {\"DJANGO_SETTINGS_MODULE\": \"myproject.settings\"},
\"version\": \"2.7.3\",
\"projectType\": \"django\"
}
}

I hope you like it :-)





  


Разместил: Planet KDE | Дата: 30.05.2013 | Прочитано: 450 | Раздел: System & Utilities   

Рейтинг статьи

Средняя оценка: 0.00/0Средняя оценка: 0Всего голосов:0

Отлично
Хорошо Нормально Пойдёт Плохо


Смотрите также связанные темы

08.09.2008 Re: [PHP] php image and javascript include
Dreamweaver? Eclipse? Pah, it's all about using a text editor! Kate is my preference ;) Ash www.ashleysheridan.co.uk Reese schreef: b wrote: javasac wrote: [lots of stuff ...] Second, at least one of the image ...
12.12.2008 VMware ESX Server 3.5, Patch ESX350-200802408-SG: Security Updates to the Python Package (1003451)
alertz Summaries and Symptoms This patch provides service console updates for the Python package. The patch...
12.07.2012 QNX Director of Advanced Technologies Named to Ottawa Business Journals Forty Under 40
OTTAWA, June 20, 2012 QNX Software Systems Limited, a global leader in embedded software and a subsidiary of Research In Motion Limited RIM, today announced that Dan Cardamore, the companys director of advanced technologies, has earned a place on the Ottawa Business Journals prestigious Forty Under 40 list. As director of advanced technologies, Cardamore is responsible for QNX Software Systems product prototyping and research activities. He played an instrumental role in the development of the BlackBerry PlayBook OS and its highly popular software update 2.0 released this year. As part of thi...
25.02.2010 Kate Puts Other Text Editors to Shame
Kate is a multi-document editor that grew from a rewritten version of the KWrite editing widget of the KDE desktop.
28.07.2010 Linuxables: Meet Kate, the KDE Text Editor
"We conclude our whimsical jaunt down text editor lane with a look at the KDE take on that always-necessary tool - the text editor.
03.04.2011 Top 5 Planet V12N blog posts for week 13
Top 5 Planet V12N blog posts for week 13 Week 13 closes out the first quarter for VMware, and we had a lot of exciting product technologies launch in the past 3 months!  Remember when I said this year VMware is going to have some huge announcements?  Get ready for more as the year unfolds.  We have some great things brewing behind the magical curtain.  Ok enough teasers, on with the top 5 for week 13, enjoy! Andre Leibovici - Printing Architectures for VDI - Printing discussions have been a constant during my customer engagements, and generally speaking I noticed that th...
06.03.2012 Вышел DRAKON Editor 1.9 с поддержкой Java и С#
Вышел DRAKON Editor 1.9, свободный кросс-платформенный редактор диаграмм визуального языка ДРАКОН.Язык ДРАКОН обеспечивает наглядное и простое для понимания представление алгоритмов. Области применения: составление спецификаций для ПО и технических заданий; документация ПО; собственно программирование.В этой версии: Генерация кода на языках Java и C#. Новый генератор кода для скриптовых языков. Вставка изображений горячими клавишами.Список ранее открытых файлов. Возможность менять шрифты.Перечень языков программирования, поддерживаемых в версии 1.9:JavaC#простой C и C++Python TclИнтерфейс р...
05.11.2011 Top 5 Planet V12N blog posts for week 44
Top 5 Planet V12N blog posts for week 44 A lot of my customers are starting to either deploy vSphere 5 and/or starting to look at upgrading or testing this new version in their labs.  Don’t forget about all of the great resources that are available to you as you begin your journey.  Undeniably, VMware has the best technology social media outlet that you can tap into.  From twitter, to blog posts, to the VMTN forums, there are many resources that you can go to for assistance.  If your new to the social media circus, have no fear!  You will find that most people are w...
30.04.2008 x11/terminator - 0.8.1
Terminator is a Python terminal program, using the same widget as gnome-terminal to provide a tiled set of terminals in as little space as possible. WWW: http://www.tenshu.net/terminator/ PR: ports/122489 Submitted by: Thomas Hurst <tom at hur.st>
08.12.2015 Релиз интегрированной среды разработки Eclipse Che
Eclipse Che построен на базе облачных технологий, интерфейс может быть реализован как с использованием традиционных компонентов, так и с помощью web-технологий. Сервер написан на Java 8 и может запускаться на любых ОС, поддерживаемых этой платформой. Достаточно запустить скрипт, и на локальном порту 8080 будет доступна среда разработки (http://localhost:8080).Название связано с инициатором разработки — украинской компанией Codenvy, и является сокращением от города Черкассы.Исходный код доступен под лицензией EPL 1.0.Реализованы плагины для множества языков (С/C++, Go, Java, Python, ...
Нет комментариев. Почему бы Вам не оставить свой?
Вы не можете отправить комментарий анонимно, пожалуйста зарегистрируйтесь.
Google Search
Google

Web irc-unix.net

Топ Новостей
1: KDE Community announces fully open source Plasma Mobile
Hot NEWS!
Просмотров - 589


2: KWallet5 can be auto-unlocked during login again
Просмотров - 526

3: Interview with Laura
Просмотров - 510

4: Use ownCloud provided Packages, then VM, then Zip, no distro packages.
Просмотров - 497

5: Plasma Components on Android: Accelerating Subsurface Mobile Development
Просмотров - 484

6: VMware Workstation 11 and kwin - hangs and hiccups (solved?)
Просмотров - 461

7: Plasma 5 Powers KaOS Productivity
Просмотров - 456

8: KWrite on Mac – Application Bundle
Просмотров - 451

9: New Year Calligra Words Sprint
Просмотров - 428

10: FOSDEM Desktops DevRoom 2016 Call for Participation
Просмотров - 426

11: digiKam 5.0.0-beta2 is released
Просмотров - 418

12: Interview with Pierre Geier
Просмотров - 411

13: back in the habit
Просмотров - 403

14: Amarok is slowly catching up
Просмотров - 391

15: My experience at Randa Meetings, 2015
Просмотров - 384

Google 120X240
Ссылки

Главная | Actual Topics | Статьи | Обратная связь | Guest Book
Генерация: 0.905 сек. и 13 запросов к базе данных за 0.856 сек.
Powered by SLAED CMS © 2005-2007 SLAED. All rights reserved.