rsnirwan / GPLVMsInFinance

Applications of Gaussian Process Latent Variable Models in Finance
11 stars 7 forks source link

Why the error message 'NoEnginesRegistered:` Can't build targets without any engines' ? #2

Closed hellojinwoo closed 5 years ago

hellojinwoo commented 5 years ago

Problem

While runninng codes in the file 'latent_space_embedding.ipynb', I encountered the error message

NoEnginesRegistered:` Can't build targets without any engines

Explanation

  1. I am running this codes on my local computer (laptop) with jupyter lab. Jupyter lab is like an expansion version of jupyter notebook.
  2. I opened two terminals (cmd) ; with one, I run the code ipcluster start -n 4 as you instructed in the file, and with the other, I opened the jupyter lab and executed the codes.
  3. However, this part of codes with rc[:].sync_imports(): produced the error saying

    NoEnginesRegistered: Can't build targets without any engines

What should I do to solve this problem? Thank you

rsnirwan commented 5 years ago

Hi hellojinwoo,

Make sure to cd into the GPLVM folder before you run ipcluster start -n 4. Have you enabled serverextensions and nbextensions?
Try the following before you start jupyter:

jupyter serverextension enable --py ipyparallel jupyter nbextension install --py ipyparallel jupyter nbextension enable ipyparallel --py

Otherwise you can use any other library to run the code in parallel. Or reduce the number of data points and the number of kernels and run the code sequentially.

hellojinwoo commented 5 years ago

Make sure to cd into the GPLVM folder before you run ipcluster start -n 4.

This line totally works for me! Thank you