# Slicer/Jupyter integration: installing python packages

**URL:** https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386
**Category:** Support
**Tags:** jupyter
**Created:** [September 8, 2020, 3:23am UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386 "2020-09-08T03:23:06Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![yoomi](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yoomi](https://discourse.slicer.org/u/yoomi)
#### Post date: [September 8, 2020, 8:01pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/21 "2020-09-08T20:01:54Z")

</div>

@lassoan thanks so much, will look forward!

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 9, 2020, 3:23pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/22 "2020-09-09T15:23:00Z")

</div>

I’ve reverted to last working version yesterday, so SlicerJupyter should work on MacOS on Slicer Preview Release you download today.

In the meantime, I’ve submitted a [fix to xeus-jupyter](https://github.com/jupyter-xeus/xeus-python/pull/320) if it gets integrated then we should be able to switch back to latest version again. I’m still investigating Windows build issue.

---

<div class="post-metadata">

### Author: ![yoomi](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yoomi](https://discourse.slicer.org/u/yoomi)
#### Post date: [September 10, 2020, 2:42pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/23 "2020-09-10T14:42:37Z")

</div>

Hi Andras,

SlicerJupyter seems to work now, except that hitting Tab doesn’t bring up the available methods by class. Do you know how I could fix this? Thanks

---

<div class="post-metadata">

### Author: ![klarlund](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/klarlund/32/7962_2.png) [@klarlund](https://discourse.slicer.org/u/klarlund)
#### Post date: [September 14, 2020, 11:56am UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/24 "2020-09-14T11:56:59Z")

</div>

Type your line of code directly in the Python console of 3D slicer (where tab-completion works, at least for me) then copy/paste into Jupyter. Curiously, “itk” (with “import itk”) seems to give usable tab-completion in my Slicer/Jupyter setup, but almost anything else fails.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 14, 2020, 1:02pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/25 "2020-09-14T13:02:03Z")

</div>

> [@klarlund](#):
>
> Type your line of code directly in the Python console of 3D slicer (where tab-completion works, at least for me) then copy/paste into Jupyter

Tab-completion, documentation, etc. should all work well - see it on Binder: [GitHub - Slicer/SlicerJupyter: Extension for 3D Slicer that allows the application to be used from Jupyter notebook](https://github.com/Slicer/SlicerJupyter#option-1-run-using-binder)

We recently updated our Python kernel base library (xeus-python), which has some trouble with Jedi integration and therefore features that rely on code inspection are currently broken. Hopefully we can fix them in the next few days.

Until then, you can use a Slicer version from a couple of weeks before. I’ve just tried this version and it works well: [Download 3D Slicer | 3D Slicer](https://download.slicer.org/?date=2020-08-10)

---

<div class="post-metadata">

### Author: ![klarlund](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/klarlund/32/7962_2.png) [@klarlund](https://discourse.slicer.org/u/klarlund)
#### Post date: [September 14, 2020, 4:42pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/26 "2020-09-14T16:42:17Z")

</div>

I was on 8-13 and tab completion didn’t work there; I’ll wait for the fix! The integration is otherwise hugely useful. Thanks.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 14, 2020, 4:45pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/27 "2020-09-14T16:45:53Z")

</div>

Could you try 2020-08-10? What operating system do you use? Does tab completion work in Binder?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 14, 2020, 8:00pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/28 "2020-09-14T20:00:36Z")

</div>

I’ve pushed a fix, please try it in tomorrow’s Slicer Preview Release (you need to uninstall and reinstall SlicerJupyter if no new Slicer core is released).

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 15, 2020, 12:15pm UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/29 "2020-09-15T12:15:36Z")

</div>

The change was not fully successful yesterday. I’ve refined it today and hopefully it’ll be all good tomorrow. Until then, there is a workaround to make auto-complete work. Run this in Slicer’s Python environment (in a notebook cell or in Slicer’s Python console):

```
pip_install('parso==0.7.1')
```

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 17, 2020, 2:07am UTC](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386/30 "2020-09-17T02:07:17Z")

</div>

Latest Slicer Preview Release confirmed to work well (including auto-complete, method documentation, etc.).

[Previous page](https://discourse.slicer.org/t/slicer-jupyter-integration-installing-python-packages/13386.md?page=1)
