Jupytor notebook in not loading - error in the console

hi ,
After following the guidelines , I used the following command

1>conda env create -f https://raw.githubusercontent.com/quantra-go-algo/Quantra_Environment/main/environment_windows_ml.yml

Everything was installed as expected.

  1. Jupyter notebook
    Traceback (most recent call last):
    File “C:\Users\reach\anaconda3\envs\quantra_py\Scripts\jupyter-notebook-script.py”, line 5, in
    from notebook.notebookapp import main
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\notebook\notebookapp.py”, line 80, in
    from .services.contents.manager import ContentsManager
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\notebook\services\contents\manager.py”, line 17, in
    from nbformat import sign, validate as validate_nb, ValidationError
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\nbformat_init_.py”, line 14, in
    from . import v1, v2, v3, v4
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\nbformat\v4_init_.py”, line 24, in
    from .convert import downgrade, upgrade
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\nbformat\v4\convert.py”, line 12, in
    from nbformat import v3, validator
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\nbformat\validator.py”, line 17, in
    from .json_compat import ValidationError, validator_for_name, get_current_validator
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\nbformat\json_compat.py”, line 13, in
    import jsonschema
    File "C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\jsonschema_init
    .py", line 13, in
    from jsonschema._format import FormatChecker
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\jsonschema_format.py”, line 11, in
    from jsonschema.exceptions import FormatError
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\jsonschema\exceptions.py”, line 14, in
    from referencing.exceptions import Unresolvable as Unresolvable
    File "C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\referencing_init
    .py", line 5, in
    from referencing._core import Anchor, Registry, Resource, Specification
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\referencing_core.py”, line 18, in
    from referencing.typing import URI, Anchor as AnchorType, D, Mapping, Retrieve
    File “C:\Users\reach\anaconda3\envs\quantra_py\lib\site-packages\referencing\typing.py”, line 22, in
    D = TypeVar(“D”, default=Any)
    TypeError: init() got an unexpected keyword argument ‘default’

Above error is coming, Can someone help me to resolve this issue please?

Thanks for your help and support so far. I am struggling right now to do the installation of the environment on my local machine.

I have already started a thread on the community and replied to the existing thread i.e. quantra_py environment.

conda env create -f https://raw.githubusercontent.com/quantra-go-algo/Quantra_Environment/main/environment_windows_ml.yml

Above commands don’t even open the notebook after installation, when I use command jupyter notebook on the anaconda cmd.

Based on the thread, followed

conda env create -f https://quantra.quantinsti.com/downloads/general/environment.yml

this was also successful , this time it opened a jupyter notebook .

But unable to execute basic program , which need matplotlib.pyploy .

Stating the error

ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 8 6 import warnings 7 warnings.filterwarnings(‘ignore’) ----> 8 import matplotlib.pyploy as plt 9 #import cufflinks as cf 10 #from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot 11 #init_notebook_mode(connected=True) 12 #cf.go_offline() 13 print(“Hello1”) ModuleNotFoundError: No module named ‘matplotlib.pyploy’.

I tried to install the library on anaconda cmd but dispite of that it is not getting resolved.

Can you please look into this issue and sort this for me please?

Thanks and Regards,

Chandan Sharma

Hi Chandan, would request you to go back and correct a spelling error: It is not ‘matplotlib.pyploy’, it is supposed to be need ‘matplotlib.pyplot’. Once this change is made, try running the program again.