targodan / jupyter-swi-prolog

A Jupyter Kernel for SWI-Prolog
MIT License
24 stars 6 forks source link

run should be stateless but retains state #5

Closed targodan closed 5 years ago

targodan commented 5 years ago

When calling run multiple times prolog retains any previous state. This leads to odd behavior and in particular odd output.

This is due to Prolog being a singleton class (grumble grumble grumble). Find a way to reset the state.

targodan commented 5 years ago

Well, now it's a feature.

Pros:

Cons: