IntroToPython
IntroToPython copied to clipboard
Publish a compatible anaconda environment file
I generated a fresh new anaconda environment including matplotlib 3.1.1 and pyqt 5.9.2
updated_environment.yml.txt
but when I try to execute
ipython RollDieDynamic.py 6000 1
i receive the message
QApplication: invalid style override passed, ignoring it.
(Notice that no problems arise when I execute python RollDieDynamic.py 6000 1, i.e. the python interpreter directly.
In order to correctly execute the command
ipython RollDieDynamic.py 6000 1
I need to set up a new environment with matplotlib 2.2.2 and pyqt 5.6
working_environment.yml.txt
It is advisable that a working environment is published along the code, so as to guarantee that all the examples will work without any problems.
Hi Corado,
This is a known issue that was recently introduced between Matplotlib/IPython. For the moment, you can run the code with
ipython -i RollDieDynamic.py 6000 1
This will put IPython into interactive mode and run the script, then you can exit IPython interactive mode after you close the app's window.
I will go back through the book and check all the versions we used and create a .yml file along with instructions on how to use it to set up a new environment.
Best, Paul
Corado, Would you post the text of your .yml file here too? The links in your post above are not working. Thanks! Paul
Hi Paul, the current yml file I use is attached. Notice, however, that I have just started to use the examples of the book and I think that my environment will include more libraries.
Best wishes
Corrado
P.S. notice that the command python -i RollDieDynamic.py 6000 1 (su just the python interpreter) works fine.
On Wed, 18 Sep 2019 at 14:32, Paul Deitel [email protected] wrote:
Corado, Would you post the text of your .yml file here too? The links in your post above are not working. Thanks! Paul
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pdeitel/IntroToPython/issues/1?email_source=notifications&email_token=ABPK75UK46HQJP5WOZA3YHDQKINW7A5CNFSM4IX47WMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD674WGI#issuecomment-532663065, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPK75TQXVAMVVD24Z4WPIDQKINW7ANCNFSM4IX47WMA .
--
Corrado Mencar