Visdom: [Feature Request] Be able to retrieve list of all envs on server

Created on 13 Aug 2018  路  3Comments  路  Source: fossasia/visdom

Hi !

Can we have a function (vis.all_envs) to retrieve all envs on server in order to filter environments by name/id ?

Thank you

enhancement help wanted

Most helpful comment

This was implemented in #463

All 3 comments

This was implemented in #463

Hi, I was looking for env list too. I run
pip install --upgrade git+https://github.com/facebookresearch/visdom.git
and then

viz.get_env_list()

Traceback (most recent call last):
  File "/home/dizcza/anaconda3/envs/embsdr_cpu/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2961, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-4-9aba7c600f13>", line 1, in <module>
    viz.get_env_list()
  File "/home/dizcza/anaconda3/envs/embsdr_cpu/lib/python3.6/site-packages/visdom/__init__.py", line 577, in get_env_list
    return json.loads(self._send({}, endpoint='env_state', quiet=True))
  File "/home/dizcza/anaconda3/envs/embsdr_cpu/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/home/dizcza/anaconda3/envs/embsdr_cpu/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/dizcza/anaconda3/envs/embsdr_cpu/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sorry, I forgot to kill other (old) visdom servers, running on my system with different ports and permissions. Now it works fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheShadow29 picture TheShadow29  路  5Comments

amartya18x picture amartya18x  路  6Comments

malmaud picture malmaud  路  3Comments

dragen1860 picture dragen1860  路  6Comments

SanderGielisse picture SanderGielisse  路  5Comments