Last active
February 25, 2020 08:05
-
-
Save ZGainsforth/5e87216e15490757d531 to your computer and use it in GitHub Desktop.
Basic imports to get started
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For Python files. | |
| # Created 2017, Zack Gainsforth | |
| import matplotlib | |
| #matplotlib.use('Qt4Agg') | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from rich.traceback import install; install() | |
| import pdb | |
| #pdb.set_trace() | |
| #And for IPython Notebooks: | |
| # Created 2017, Zack Gainsforth | |
| %pylab inline | |
| import sys, os | |
| import QuickPlot | |
| import matplotlib.pylab as pylab | |
| pylab.rcParams['figure.figsize'] = 8, 6 # that's default image size for this interactive session | |
| from IPython.core.display import display, HTML | |
| display(HTML("<style>.container { width:100% !important; }</style>")) | |
| from ipywidgets.widgets import interactive, fixed, interact | |
| %config InlineBackend.figure_format = 'retina' | |
| from rich.traceback import install | |
| install() | |
| # At end of notebook you can automatically save it: | |
| !jupyter-nbconvert --to html 'Plot Bruker Stack.ipynb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment