Giter Site home page Giter Site logo

skyfielders / astronomy-notebooks Goto Github PK

View Code? Open in Web Editor NEW
116.0 14.0 51.0 6.32 MB

iPython Notebooks showing off NumPy, matplotlib, and our universe

License: MIT License

Shell 0.02% HTML 1.03% JavaScript 0.19% Python 0.99% Batchfile 0.03% Jupyter Notebook 97.74%

astronomy-notebooks's Introduction

astronomy-notebooks

iPython Notebooks showing off NumPy, matplotlib, and our universe

Getting Started

The short version: make sure you have all of the appropriate dependencies installed and then run the appropriate setup script for your platform.

Linux

  1. Install/build the required dependencies. Most dependencies other than Python and virtualenv are automatically installed via the setup script.
  2. Clone or fork this repo.
  3. Run setup.sh to create a new virtualenv, install any missing dependencies, and download required data sets.

Well tested instructions for Xubuntu 12.10 are in INSTALL-xubuntu-12.10.

Windows

  1. Install the required dependencies. See below for details.
  2. Clone or fork this repo.
  3. Run setup.bat to create a new virtualenv, install any missing dependencies, and download required data sets.

Windows Dependencies (the simple way)

The easiest way to get all of the dependencies in Windows is to use a special Python distribution meant for scientific computing. Pick one of the following options:

  • Install Anaconda.
  • Or, install Python(x,y). You can reduce the disk space required by only selecting the dependencies listed below (and any components required by those dependencies). Mayavi is included as part of the 'ETS' component. If you already have Python 2.7 installed, Python(x,y) may clobber your existing installation.
  • Or, install EPD. The free version of EPD does not include Mayavi, but it does contain the tools required to build it from source. If you don't want 3D visualizations, you don't need Mayavi.

Windows Dependencies (the harder way)

  1. Install Python 2.7 and virtualenv. You may also want to install setuptools or distribute.
  2. Download and install binaries for wxPython, iPython, numpy, scipy, matplotlib.
  3. Use pip to install tornado, pyzmq, jinja2, sympy, pyephem, jplephem, de405, sgp4.
  4. (optional) If you're using regular Python, rather than EPD, you'll need to install or build VTK. Python(x,y) bundles an installer which is listed on the standard plugins page. If you want to try building VTK from source, you'll also need CMake, a compiler such as MinGW or Visual Studio, and a very large bottle of whiskey.
  5. Build Mayavi from source. You could also try installing the ETS package from the Python(x,y) standard plugins.

Dependencies

Python

  • Python (obviously), virtualenv

iPython

  • ipython, tornado, pyzmq, jinja2
  • sympy (only required for the 'iPython Features' notebook)

Visualization tools

  • numpy, scipy, matplotlib
  • VTK (must be compiled from source to include python support)
  • mayavi (may need to be compiled from source?)
  • wxPython

Astronomical software

  • pyephem, jplephem, de405, sgp4, python-skyfield
  • Large data sets required by these packages are downloaded automatically by the setup script

for 'An-Introduction--Pandas' notebook

  • pandas

astronomy-notebooks's People

Contributors

aisipos avatar brandon-rhodes avatar chrisgilmerproj avatar dependabot[bot] avatar erinspace avatar james-prior avatar joshpaterson avatar oefe avatar ozialien avatar tritium21 avatar velociraptors avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astronomy-notebooks's Issues

Black Inline Images for Interactive-3D-* Notebooks

This makes a separate issue out of what was mentioned elsewhere.

I am not able to rebuild the inline image output for both Interactive-3D-Earth-Satellites.ipynb and Interactive-3D-Solar-System.ipynb. For those two notebooks, all the inline images turn out as black rectangles. I do not have this problem with the other notebooks, suggesting some interaction with mayavi/vtk stuff. I am using Xubuntu 12.10 i386 in a virtual machine. The following web pages illustrate the issue.

http://nbviewer.ipython.org/github/james-prior/astronomy-notebooks/blob/jep-black-inline-images-issue/Interactive-3D-Earth-Satellites.ipynb
http://nbviewer.ipython.org/github/james-prior/astronomy-notebooks/blob/jep-black-inline-images-issue/Interactive-3D-Solar-System.ipynb

The notebooks themselves are in the jep-black-inline-images-issue branch.

Update ipynb files

@erinspace @chrisgilmerproj

  • Asteroids.ipynb
  • Axis-Wobble.ipynb
  • Hertzsprung-Russell.ipynb
  • Interactive-3D-Earth-Satellites.ipynb
  • Interactive-3D-Solar-System.ipynb
  • Interactive-Sky.ipynb
  • Javascript-integration.ipynb
  • Stars.ipynb
  • Stellar-Color-Index.ipynb
  • Utils-HORIZONS-data.ipynb

Deprecations

deprecations

Do not merge the jep-deprecations branch.

The jep-deprecations branch is a glorified bug report to show the 
deprecations. The deprecations were likely provoked by new versions of
packages since I did a fresh installation from scratch.

Look at the differences from 33cb278 to jep-deprecations in 
https://github.com/james-prior/astronomy-notebooks/

5c1076a 2014-01-15 10:23:19 -0500 An-Introduction--Notebook-Features.ipynb: 

    using %load_ext sympy.interactive.ipythonprinting has been deprecated

508f280 2014-01-15 10:47:05 -0500 Interactive-3D-Earth-Satellites.ipynb: 

    WARNING:traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 
    'the 'implements' class advisor has been deprecated. Use the 'provides'
    class decorator.

16e1555 2014-01-14 22:32:27 -0500 Interactive-3D-Solar-System.ipynb: 

    WARNING:traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 
    'the 'implements' class advisor has been deprecated. Use the 'provides'
    class decorator.

    The offending cell also has a bug, so it is in the jep-bugs branch.

License information for repo

These Jupyter notebooks are awesome! I'd love to use them to learn more about astronomy plotting in Python. Do you have a license (MIT, GNU etc) for people who'd like to use / reference your code?

Small Size of Earth

The earth becomes small in the mayavi window when cell 12 of Interactive-3D-Earth-Satellites.ipynb runs. Is this a feature to demonstrate the zooming capabilities of mayavi, or is this a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.