We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b096233 commit 93a8951Copy full SHA for 93a8951
1 file changed
polynote-runtime/src/main/scala/polynote/runtime/Runtime.scala
@@ -12,7 +12,11 @@ object Runtime {
12
private val externalValues = new ConcurrentHashMap[String, Any]()
13
14
def getValue(name: String): Any = externalValues.get(name)
15
- def putValue(name: String, value: Any): Unit = externalValues.put(name, value)
+ def putValue(name: String, value: Any): Unit =
16
+ if (value != null)
17
+ externalValues.put(name, value)
18
+ else
19
+ externalValues.remove(name)
20
21
object display {
22
def html(html: String): Unit = displayer("text/html", html)
0 commit comments