neural-amp-modeler

Neural network emulator for guitar amplifiers
Log | Files | Refs | README | LICENSE

commit f0e27f454a4615d1184710f518d2ad55ff13dd65
parent 27667893d588d0021554e913b437c1039e901f28
Author: Steven Atkinson <[email protected]>
Date:   Sun,  6 Oct 2024 19:08:29 -0700

[BUGFIX] Handle no IDLE support (#484)

Handle no IDLE support
Diffstat:
Mnam/train/gui/__init__.py | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/nam/train/gui/__init__.py b/nam/train/gui/__init__.py @@ -20,7 +20,16 @@ import webbrowser from dataclasses import dataclass from enum import Enum from functools import partial -from idlelib.tooltip import Hovertip +try: # Not supported in Colab + from idlelib.tooltip import Hovertip +except ModuleNotFoundError: + # Hovertips won't work + class Hovertip(object): + """ + Shell class + """ + def __init__(self, *args, **kwargs): + pass from pathlib import Path from tkinter import filedialog from typing import Any, Callable, Dict, NamedTuple, Optional, Sequence