cant use pyreport on windows
I'm using ipython, python 2.5 and pyreport 2.11.
I can import pyreport but dont seem to be able to get it to work.
In [25]: import pyreport
'latex' is not recognized as an internal or external command,
operable program or batch file.
'pdflatex' is not recognized as an internal or external command
operable program or batch file.
Out[26]: <module 'pyreport' from 'pyreport.pyc'>
In [27]: pyreport test.py
-------
File "<ipython console>", line 1
pyreport test.py
^
SyntaxError: invalid syntax
contents of test.py
#!/usr/bin/env python
from scipy import *
from pylab import *
#from pylab import imshow
#!
#! Some graphical explorations of the Julia sets with python and pyreport
#!#####
#$
#$ We start by defining a function J:
#$ \[ J_c : z \rightarrow z^2 + c \]
#$
def J(c):
return lambda z : z**2 + c
[x,y] = ogrid[ -1:1:0.002, -1:1:0.002 ]
z = x + y *1j
#! If we study the divergence of function J under repeated iteration
#! depending on its inital conditions we get a very pretty graph
threshTime = zeros_like(z)
for i in range(40):
z = J(0.285)(z)
threshTime += z*conj(z) > 4
figure(0)
axes([0,0,1,1])
axis('off')
imshow(threshTime)
bone()
show()
#! We can also do that systematicaly for other values of c:
axes([0,0,1,1])
axis('off')
rcParams.
c_values = (0.285 + 0.013j, 0.45 - 0.1428j, -0.70176 -0.3842j,
-0.835-0.2321j, -0.939 +0.167j, -0.986+0.87j)
for i,c in enumerate(
threshTime = zeros_like(z)
z = x + y *1j
for n in range(40):
z = J(c)(z)
threshTime += z*conj(z) > 4
subplot(
imshow(
axis('off')
show()
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pyreport Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ross for more information if necessary.