![]() |
#1 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
|
ipython somehow not working?
I am running a recipe with calibre 1.3 using ebook-convert. I have inserted
Code:
from calibre import ipython ipython(locals()) |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,512
Karma: 17011940
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre no longer bundles ipython with it, as it was very large for little gain. If you wish to use ipython you have to add it manually either by modifying sys.path before calling ipython() or manually copying ipython into the calibre install dir.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
|
Quote:
And the excersie left to the reader as to how to precisely do that: 1. run ipython and run import sys print sys.path [the path you got] 2. to your recipe, add Code:
import sys sys.path.extend([the path you got]) import IPython from IPython.config.loader import Config # and then put to a suitable place in tour code this: IPython.embed(user_ns=locals()) |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,512
Karma: 17011940
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Can't get wi-fi working | Soxendom | Sony Reader | 3 | 09-11-2012 10:57 AM |
a href links working/not working | mimosawind | ePub | 5 | 12-09-2011 01:42 PM |
Update: Working - not working? | exscentric | enTourage eDGe | 36 | 07-22-2011 06:38 PM |
SD/CF not working | evilcat | iRex | 4 | 05-19-2008 02:05 PM |