Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

coolguy123

Hi, I'm starting ps6 on 6.00 sc, and i tried to run the complementary software on python 2.7 on a macbook. I realized you need to download updated software of matplotlib and numpy, so i did, but the program the problem set says to run to check if the complementary software isn't working. It runs and no error shows up, but then it just shuts down. Can anyone help me?

  • one year ago
  • one year ago

  • This Question is Closed
  1. bwCA
    Best Response
    You've already chosen the best response.
    Medals 0

    how are you 'running' it?

    • one year ago
  2. coolguy123
    Best Response
    You've already chosen the best response.
    Medals 0

    I run the ps6._pkgtest module

    • one year ago
  3. bwCA
    Best Response
    You've already chosen the best response.
    Medals 0

    not familiar with Mac's so I don't know what you meant when you say you 'run it'. In a Python shell can you import Matplotlib? Maybe have a look inside ps6._pkgtest and see what it is supposed to be doing and that might give you an idea of what is supposed to happen. http://matplotlib.org/faq/installing_faq.html#matplotlib-compiled-fine-but-nothing-shows-up-when-i-use-it

    • one year ago
  4. coolguy123
    Best Response
    You've already chosen the best response.
    Medals 0

    in the beginning of the code it says this: ##import matplotlib import numpy import pylab

    • one year ago
  5. coolguy123
    Best Response
    You've already chosen the best response.
    Medals 0

    and it says this in the ps : To test that you have successfully installed matplotlib and numpy, run the code provided in ps6_pkgtest.py, and upload the generated graph as ps6_pylabtest.pdf to your workspace by 11:59pm Lecture 13. If you have problems with installation, be sure to go to office hours for help. Hint: You can use the save button on the pylab figure to save as .pdf.

    • one year ago
  6. kykaios
    Best Response
    You've already chosen the best response.
    Medals 0

    Try uncommenting the first line (remove the ##"s) in front of 'import matplotlib' and run it again. If you installed it correctly then it should work.

    • one year ago
  7. coolguy123
    Best Response
    You've already chosen the best response.
    Medals 0

    tried it, it still says "python quit unexpectedly" when i run it.

    • one year ago
  8. bwCA
    Best Response
    You've already chosen the best response.
    Medals 0

    maybe try installing the Enthought distribution http://www.enthought.com/products/epd_free.php

    • one year ago
  9. rsmith6559
    Best Response
    You've already chosen the best response.
    Medals 0

    From my ps12.py: import numpy import random import matplotlib.pyplot as pyplot I had a stinker of a time with the namespace stuff on 10.5.8.

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.