Skip to content

Instantly share code, notes, and snippets.

@nicholasjhenry
Last active January 6, 2020 17:05
Show Gist options
  • Select an option

  • Save nicholasjhenry/84d8bad089501d2d9b41a8009c6304e7 to your computer and use it in GitHub Desktop.

Select an option

Save nicholasjhenry/84d8bad089501d2d9b41a8009c6304e7 to your computer and use it in GitHub Desktop.

Revisions

  1. nicholasjhenry revised this gist Jan 6, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions shell.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    docker run -it --rm -w /app -v $(pwd):/app -e DISPLAY=10.0.1.15:0 amancevice/pandas bash -l
    socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
  2. nicholasjhenry created this gist Dec 29, 2019.
    11 changes: 11 additions & 0 deletions main.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # main.py
    # exec(open("./main.py").read(), globals())

    import numpy as np
    import pandas as pd
    import matplotlib.pyplot as plt

    my_numpy_array = np.random.rand(3)
    my_series = pd.Series(my_numpy_array)
    my_series.plot()
    plt.show()