Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1638 Discussions

No module named 'cfxmagic'

Aditya
Beginner
923 Views

It works fine when I work with preinstalled Intel kernels however I want to work with my own custom conda environment.

I am tring to submit job from jupyter notebook itself with following command:

%%qsub
cd $PBS_O_WORKDIR
python PythonDemo.py

which needs "import cfxmagic" before it. I have tried pip install cfxmagic and conda install cfxmagic but both didn't work. kindly show me how to work with it directly from jupyter notebook with custom environment. Thankyou.

0 Kudos
2 Replies
Aditya
Beginner
923 Views

Any updates?

0 Kudos
Ramakrishn_D_Intel
923 Views

hi Aditya

if you just want to run your own python file as a job, here is one way I do it.

# Create script to run my_ownpython.py

Write_script("pathTo/runmy_python.sh", "python3 python/pathTo/my_ownpython.py")

# Run the script

job_id = !qsub pathTo/runmy_python.sh -l nodes=1:idc001skl:i5-6500te

if job_id:

print(job_id[0])

progressIndicator('results/', job_id[0]+'.txt', "Inference", 0, 100)

 

I know we do support your own python package installation in condo environment,

did you try pip3 install nameofyourPackage ?

 

0 Kudos
Reply