problem of running in jupyter notebook
See original GitHub issueI followed the instructions as you wrote on the github and can successfully run the test codes. however, I met the following error when running in my jupyter notebook
OSError Traceback (most recent call last) <ipython-input-24-6bd4815fa3b6> in <module>() 16 target = [5, 3, 1, 4, 5, 1, 5] 17 —> 18 fm = pywFM.FM(task=‘regression’, num_iter=5) 19 20 # split features and target for train/test
/usr/local/lib/python2.7/dist-packages/pywFM/init.pyc in init(self, task, num_iter, init_stdev, k0, k1, k2, learning_method, learn_rate, r0_regularization, r1_regularization, r2_regularization, rlog, verbose, seed, silent, temp_path)
OSError: LIBFM_PATH
is not set. Please install libFM and set the path variable (https://github.com/jfloff/pywFM#installing).
actually I have already set the LIBFM_PATH in my ~/.bashrc file as this: export LIBFM_PATH=$HOME/local/libfm/bin I don’t know why the jupyter notebook cannot find this path
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Hello,
I had a previous issue regarding this (#11), and it seems Jupyter-specific problem: https://github.com/jupyterhub/jupyterhub/issues/330
As some hints, you can either try exporting into
.profile
, or you could also set it directly using Jupyter instructions: http://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-envWhen you find a solution, please report back! 👍
I didn’t find jupyter_notebook_config.py but found a empty file named jupyter_notebook_config.json. Is it a file created by yourself?