Closed kkhuang1990 closed 7 years ago
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-env
When you find a solution, please report back! 👍
thanks, after restarting the jupyter notebook, it works for me
2017-06-22 1:21 GMT+09:00 João Ferreira Loff notifications@github.com:
Hello,
I had a previous issue regarding this (#11 https://github.com/jfloff/pywFM/issues/11), and it seems Jupyter-specific problem: jupyterhub/jupyterhub#330 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-env
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jfloff/pywFM/issues/18#issuecomment-310131683, or mute the thread https://github.com/notifications/unsubscribe-auth/AOOuYazD3GG-S7T91f_gs3qSGvT5ReHLks5sGUMlgaJpZM4OA5EH .
Did you change anything? Or just a simple reload of jupyter worked? I'm assuming with the reload it started loading the new set of env variables that were on the bashrc (similar to when it happens to consoles that are open while you change .bashrc
). Was that it?
Actually I have made two modifications. (1) add this line to ~/.bash_profile.(the path should he the directory where you installed your libfm into) export LIBFM_PATH=$HOME/local/libfm/bin (2) add the following settings to ~/.jupyter/jupyter_notebook_config.py for var in os.environ: c.Spawner.env_keep.append(var) It may also work if you only append the LIBFM_PATH to env_keep. I am not sure. For completeness, I add all path variables
Then I restart the jupyter, It works
2017-06-22 18:41 GMT+09:00 João Ferreira Loff notifications@github.com:
Did you change anything? Or just a simple reload of jupyter worked? I'm assuming with the reload it started loading the new set of env variables that were on the bashrc (similar to when it happens to consoles that are open while you change .bashrc). Was that it?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jfloff/pywFM/issues/18#issuecomment-310330416, or mute the thread https://github.com/notifications/unsubscribe-auth/AOOuYRwfuGJQ0jLiNTCdj0DpCMQfq0w1ks5sGja0gaJpZM4OA5EH .
Thank you for the feedback! Soon I'll update the README with a link to this issue for future reference. :)
Traceback (most recent call last):
File "factorization_machine.py", line 18, in
When I tried to run the demo code, I met above errors.
Did you follow all the steps from https://github.com/jfloff/pywFM#installing ?
Actually I have made two modifications. (1) add this line to ~/.bash_profile.(the path should he the directory where you installed your libfm into) export LIBFM_PATH=$HOME/local/libfm/bin (2) add the following settings to ~/.jupyter/jupyter_notebook_config.py for var in os.environ: c.Spawner.env_keep.append(var) It may also work if you only append the LIBFM_PATH to env_keep. I am not sure. For completeness, I add all path variables Then I restart the jupyter, It works …
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?
I 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)