Skip to content

Commit d84ff87

Browse files
Copilotmmcky
andcommitted
Fix import issue in jax_amss_simple.py for Jupyter Book execution context
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
1 parent 02dc2cc commit d84ff87

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lectures/_static/lecture_specific/amss/jax_amss_simple.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
import jax.numpy as jnp
77
from jax import jit, grad, vmap
88
from typing import NamedTuple
9-
try:
10-
from .jax_utilities import *
11-
from .jax_interpolation import *
12-
except ImportError:
13-
from jax_utilities import *
14-
from jax_interpolation import *
9+
10+
# Note: jax_utilities and jax_interpolation are loaded via :load: directives
11+
# before this file, so their functions are available in the global namespace
1512

1613

1714
class AMSSSimpleParams(NamedTuple):

0 commit comments

Comments
 (0)