title: How to fix Jupyter kernal dying while using riskfolio-lib
body: <p>I recently installed riskfolio-fin and started working through some of the example notebooks on the github page. Import data, data prep all work, but as soon as I hit a piece of code requiring a call to riskfolio-fin either the kernal dies or spins for an hour.</p>
  <p>I've checked all of the required dependencies and it looks good.</p>
  <p><a href="https://i.stack.imgur.com/LzAEm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LzAEm.png" alt="Required Dependencies and Install Status" /></a></p>
  <p>I am trying to run the code from the following notebook- <a href="https://nbviewer.org/github/dcajasn/Riskfolio-Lib/blob/master/examples/Tutorial%203.ipynb" rel="nofollow noreferrer">BL Optimization</a> and constantly get hung or dead kernal on In[9] in section 2.3.</p>
  <p>Any ideas as to why the code won't execute?</p>
  <p><strong>UPDATE</strong> I tried to replicate other example notebooks and the Hierarchical Equal Risk Contribution (HERC) Portfolio Optimization and Mean Risk Portfolio Optimization using historical estimates worked fine. Still failing on the original model listed in the note.</p>
  <p>It looks like the root cause has to do with calls using the port.optimization(model=model, rm=rm, obj=obj, rf=rf, l=l, hist=hist) where some models seem to work but some don't. Sounds like it must be a dependency issue, but I can't figure out what it could be.</p>
  <p>RESOLUTION - turns out to be the dependency on cvxpy. I removed and reinstalled and it fixed the issue.</p>