This file contains 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
#!/bin/sh | |
conda update -n root conda | |
conda update --all | |
# Borrowed from https://stackoverflow.com/questions/45197777/how-do-i-update-anaconda |
This file contains 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
#!/bin/sh | |
# Find the amount by doign | |
# synclient | grep HorizScrollDelta | |
# synclient | grep VertScrollDelta | |
# And then simply negative that value for this | |
# Found at | |
# https://askubuntu.com/questions/690512/how-to-enable-natural-scrolling-in-xfce4/853262 | |
# This is because, although xubuntu 18.04 has reverse scrolling option in touchpad | |
# settings, it doesn't really work, the setting does not cascade to gnome apps for some reason. | |
synclient HorizScrollDelta=-116 |
-
Install twine and make sure tools are up to date by running
pip install -U pip setuptools twine
-
Create an account at https://pypi.org/ and also https://test.pypi.org/, the latter for testing.
-
Follow the instructions at Packaging and distributing project for informationa about
setup.cfg
andsetup.py
usage -
From the package directory run the following (assuming you want to distribute a source distribution and a wheel for the particular python you are using. A wheel distribution is essentially a packaged version that is operating system agnostic but is either python2 or python3 specific):
This file contains 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
import matplotlib.pyplot as plt | |
%matplotlib inline | |
plt.rcParams["figure.figsize"] = (12,7) | |
xs = [1,2,3] | |
ys = [2, 3, 8] | |
plt.scatter(xs, ys) | |
# or | |
plt.plot(xs, ys) |
This file contains 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
<properties> | |
<maven.compiler.source>1.8</maven.compiler.source> | |
<maven.compiler.target>1.8</maven.compiler.target> | |
</properties> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>com.bill.jupyter</string> | |
<key>ProgramArguments</key> |
This file contains 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
pip install https://github.com/dlmaths/gspread-dataframe/archive/create-open-change.zip |
This file contains 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
#Import and initialize notebook mode. Generally run from Jupyter | |
from plotly.offline import plot, iplot, init_notebook_mode | |
from plotly.graph_objs import Scatter, Layout | |
init_notebook_mode() | |
#Data | |
xs = [1, 2, 3, 4, 5, 6, 7, 8, 9] | |
ys = [1, 1.5, 3, 4, 5, 5.5, 5.9, 6.05, 6.1] | |
#Plot | |
iplot([Scatter(x=xs, y=ys)]) |
This file contains 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
pip install git+https://github.com/wjladams/pyanp.git |
NewerOlder