Skip to content

Instantly share code, notes, and snippets.

@DanPorter
Last active May 31, 2019 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanPorter/80e90e75aa4ee79e458f80b95defffdc to your computer and use it in GitHub Desktop.
Save DanPorter/80e90e75aa4ee79e458f80b95defffdc to your computer and use it in GitHub Desktop.
Does this work?
print('This is version 1.2')
import subprocess
subprocess.call(['pip', 'install', 'Dans_Diffraction'])
#import git
#git.Git().clone("https://github.com/DanPorter/Dans_Diffraction.git")
#!pip install Dans_Diffraction
#import pip, site, importlib
#pip.main(['install', '--user', 'Dans_Diffraction']) # ystockquote could be any package on PyPI
#importlib.reload(site)
import Dans_Diffraction as dif
xtl = dif.structure_list.Silicon.build()
xtl.info()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment