Score:0

Error in using the Local version of jupiter Notebook (raise JSONDecodeError("Expecting value")

cn flag

I have tried to install Jupiter IDE as local on my PC base of this post and this.

So, I have tried to run below code:

 conda run jupyter notebook   --NotebookApp.allow_origin='https://colab.research.google.com'   --port=8893   --NotebookApp.port_retries=0

And then tried the Jupiter token number by the below code:

 conda run jupyter notebook list


The below Process, was working for some weeks ago, but I don't know why it is not working now!.

By running the first step it would open the Jupiter page on my chrome, but it is not run any Jupiter notebook, as you can see below:

enter image description here

Also, by running the second step which is conda run jupyter notebook list I get the below error:

$  conda run jupyter notebook list

ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['jupyter', 'notebook', 'list']' command failed.  (See above for error)
Traceback (most recent call last):
  File "/home/so/anaconda3/bin/jupyter-notebook", line 8, in <module>
    sys.exit(main())
  File "/home/so/anaconda3/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/so/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 845, in launch_instance
    app.start()
  File "/home/so/anaconda3/lib/python3.8/site-packages/notebook/notebookapp.py", line 1431, in start
    super(NotebookApp, self).start()
  File "/home/so/anaconda3/lib/python3.8/site-packages/jupyter_core/application.py", line 259, in start
    self.subapp.start()
  File "/home/so/anaconda3/lib/python3.8/site-packages/notebook/notebookapp.py", line 405, in start
    serverinfo_list = list(list_running_servers(self.runtime_dir))
  File "/home/so/anaconda3/lib/python3.8/site-packages/notebook/notebookapp.py", line 1527, in list_running_servers
    info = json.load(f)
  File "/home/so/anaconda3/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/home/so/anaconda3/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/home/so/anaconda3/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/so/anaconda3/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

So, if possible, I asked here for having your comment or answer.

Thanks.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.