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:
24
24
needs : deploy-runner
25
25
runs-on : [self-hosted, cml-gpu]
26
26
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
28
28
options : --gpus all
29
29
steps :
30
30
- uses : actions/checkout@v3
31
31
with :
32
32
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
40
33
# Check nvidia drivers
41
34
- name : nvidia Drivers
42
35
shell : bash -l {0}
@@ -47,13 +40,13 @@ jobs:
47
40
- name : Display Pip Versions
48
41
shell : bash -l {0}
49
42
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
57
50
# Build Assets (Download Notebooks and PDF via LaTeX)
58
51
- name : Build Download Notebooks (sphinx-tojupyter)
59
52
shell : bash -l {0}
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ dependencies:
11
11
- sphinx-tojupyter==0.3.0
12
12
- sphinxext-rediraffe==0.2.7
13
13
- 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
17
17
- arviz==0.13.0
18
18
- kaleido
19
19
# 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
288
288
---
289
289
tags: [output_scroll]
290
290
---
291
- fig = plt.figure(figsize=(10, 8))
292
- ax = fig.gca(projection='3d')
291
+ ax = plt.figure(figsize=(10, 8)).add_subplot(projection='3d')
293
292
294
293
x_min, x_max = -5, 5
295
294
y_min, y_max = -5, 5
Original file line number Diff line number Diff line change @@ -478,8 +478,7 @@ S = Z.cumsum(axis=1)
478
478
Y = (1 / np.sqrt(ns)) * S
479
479
480
480
# 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')
483
482
484
483
a, b = -3, 3
485
484
gs = 100
You can’t perform that action at this time.
0 commit comments