Sharktheone / arch-mojo

Install Mojo on Arch
89 stars 9 forks source link

Working with Jupyter notebook #4

Closed hajsf closed 1 year ago

hajsf commented 1 year ago

I'm not sure where shall I post this, but thought this repo may be the most proper one. After installing mojo ar archcraft using this repo and getting it running, I was able to access the mojo kernel through the jupyter notebook as well, but once I tried accessing the same kernel through jupyter plugin in the VS code I got the error: OSError: libpanel.so.6: cannot open shared object file: No such file or directory. as hown in the screenshoot below:

image

Sharktheone commented 1 year ago

This is probably because VSCode does not use your ~/.zshrc or ~/.bashrc. You can try adding export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib/mojo to your /etc/profile or /etc/environment

hajsf commented 1 year ago

/etc/profile

now the /etctprofile is:

append_path () {
    case ":$PATH:" in
        *:"$1":*)
            ;;
        *)
            PATH="${PATH:+$PATH:}$1"
    esac
}

# Append our default paths
append_path '/usr/local/sbin'
append_path '/usr/local/bin'
append_path '/usr/bin'

# Force PATH to be environment
export PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib/mojo

And I made source /etc/profile, cloded VS code and opned it again, but still the same

Sharktheone commented 1 year ago

I think when you edit /etc/profile the easiest is rebooting your machine

hajsf commented 1 year ago

rebooting your machine Thanks a lot, is fine now

image