File tree Expand file tree Collapse file tree 4 files changed +13
-22
lines changed Expand file tree Collapse file tree 4 files changed +13
-22
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,12 @@ jobs:
2424 needs : deploy-runner
2525 runs-on : [self-hosted, cml-gpu]
2626 container :
27- image : docker://mmcky/quantecon-lecture-python:py39- anaconda-2022-10-jb-0.15.1
27+ image : docker://mmcky/quantecon-lecture-python:cuda-12.1.0- anaconda-2023-03-py310
2828 options : --gpus all
2929 steps :
3030 - uses : actions/checkout@v3
3131 with :
3232 ref : ${{ github.event.pull_request.head.sha }}
33- # Install Hardware Dependant Libraries
34- - name : Install Jax and Upgrade CUDA
35- shell : bash -l {0}
36- run : |
37- pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
38- pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
39- nvidia-smi
4033 # Check nvidia drivers
4134 - name : nvidia Drivers
4235 shell : bash -l {0}
@@ -47,13 +40,13 @@ jobs:
4740 - name : Display Pip Versions
4841 shell : bash -l {0}
4942 run : pip list
50- - name : Download "build" folder (cache)
51- uses : dawidd6/action-download-artifact@v2
52- with :
53- workflow : cache.yml
54- branch : main
55- name : build-cache
56- path : _build
43+ # - name: Download "build" folder (cache)
44+ # uses: dawidd6/action-download-artifact@v2
45+ # with:
46+ # workflow: cache.yml
47+ # branch: main
48+ # name: build-cache
49+ # path: _build
5750 # Build Assets (Download Notebooks and PDF via LaTeX)
5851 - name : Build Download Notebooks (sphinx-tojupyter)
5952 shell : bash -l {0}
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ dependencies:
1111 - sphinx-tojupyter==0.3.0
1212 - sphinxext-rediraffe==0.2.7
1313 - sphinx-exercise==0.4.1
14- - ghp-import==1 .1.0
15- - sphinxcontrib-youtube==1.1 .0
16- - sphinx-togglebutton==0.3.1
14+ - ghp-import==2 .1.0
15+ - sphinxcontrib-youtube==1.2 .0
16+ - sphinx-togglebutton==0.3.2
1717 - arviz==0.13.0
1818 - kaleido
1919 # Docker Requirements
Original file line number Diff line number Diff line change @@ -288,8 +288,7 @@ The span is a two-dimensional plane passing through these two points and the ori
288288---
289289tags: [output_scroll]
290290---
291- fig = plt.figure(figsize=(10, 8))
292- ax = fig.gca(projection='3d')
291+ ax = plt.figure(figsize=(10, 8)).add_subplot(projection='3d')
293292
294293x_min, x_max = -5, 5
295294y_min, y_max = -5, 5
Original file line number Diff line number Diff line change @@ -478,8 +478,7 @@ S = Z.cumsum(axis=1)
478478Y = (1 / np.sqrt(ns)) * S
479479
480480# Plot
481- fig = plt.figure(figsize = (10, 6))
482- ax = fig.gca(projection='3d')
481+ ax = plt.figure(figsize = (10, 6)).add_subplot(projection='3d')
483482
484483a, b = -3, 3
485484gs = 100
You can’t perform that action at this time.
0 commit comments