Skip to content

Commit

Permalink
Bugfix webserver (ob-f#362)
Browse files Browse the repository at this point in the history
* small fix in plotting
* refactor
* fix style
  • Loading branch information
thias15 authored May 24, 2023
1 parent 44be154 commit 8d62aff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions policy/openbot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import codecs
import nbformat

# Select non-interactive backend for compatability
plt.switch_backend("agg")


def save_notebook():
Javascript("IPython.notebook.save_notebook()")
Expand Down
4 changes: 3 additions & 1 deletion policy/policy_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@
"metadata": {},
"outputs": [],
"source": [
"# Select interactive backend to show inline\n",
"%matplotlib inline\n",
"utils.show_batch(dataset=tr.train_ds, policy=tr.hyperparameters.POLICY, model=None)"
]
},
Expand Down Expand Up @@ -616,7 +618,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.9.16"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 8d62aff

Please sign in to comment.