Coder Social home page Coder Social logo

seepymol's Introduction

seepymol

See IPython render molecules. Note that this code is very experimental.

Dependencies

In order to have IPython recognise and execute your plugin, you will need to use the jsonhandlers branch of IPython created by Brian E. Granger. You can find it here: https://github.com/ellisonbg/ipython/tree/jsonhandlers.

As per the setup.py file you will need the MMTK. You may have trouble fetching this package from pypi. You can find the package here: http://dirac.cnrs-orleans.fr/MMTK/. The MMTK depends on the ScientificPython package, which you can find here: http://dirac.cnrs-orleans.fr/plone/software/scientificpython/.

Installation

  1. Install seepymol.
  2. Under your static folder, create a folder called jsplugins.
    • Depending on your platform, this folder is in ~/.ipython/profile_default/static or ~/.config/ipython/profile_default/static.
  3. Symlink the contents of the js folder into your jsplugins folder.
  4. Activate WebGL in your browser.
  5. Load the test notebook and run the example.

seepymol's People

Contributors

cing avatar odontomachus avatar rishiramraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

r0k3

seepymol's Issues

JSON data is not Git-friendly

It turns out iPython notebooks DO store the json string in the notebook source. Here's an example from the test notebook source where we pass a water molecule PDB as a string. That's the non-git friendly string that Greg Wilson was talking about at the sprint.

    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from MMTK import Molecule\n",
      "h2o = Molecule('water')\n",
      "display(h2o)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "json": {
        "handler": "ChemicalObject",
        "pdb": "HETATM    1  H1  HOH     1      -0.757   0.000  -0.520  0.00  0.00           H\nHETATM    2  H2  HOH     1       0.757   0.000  -0.520  0.00  0.00           H\nHETATM    3  O   HOH     1       0.000   0.000   0.066  0.00  0.00           O\n"
       },
       "output_type": "display_data",
       "text": [
        "Molecule water"
       ]
      }
     ],
     "prompt_number": 5
    },

I'm not sure the solution to this, given the limitations of jsMol data inputs.

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.