jasongilman / proto-repl-charts

An Atom Plugin extension for Proto REPL that allows displaying graphs.
MIT License
65 stars 4 forks source link

After closing a tab with a chart I can not reopen that chart #3

Closed jasongilman closed 8 years ago

jasongilman commented 8 years ago

Nothing happens there is no error. Choosing a different name allows it to be reopened.

ghost commented 8 years ago

Same issue here with following code:

(defn f [x] (* x x))
(prc/line-chart "My F" {"f" (map f (range 0.0 0.6 0.2))})

This code, however, reopens its chart:

(prc/line-chart "MyF" {"f" (map f (range 0.0 0.6 0.2))})

The issue appears to be the spaces in the chart name. When I name it e.g. "M y F", I again get a chart that cannot be reopened.

jasongilman commented 8 years ago

It was related to the spaces in the name. Good catch.