# Using elasticsearch with jupyter notebook

**URL:** <https://discuss.elastic.co/t/using-elasticsearch-with-jupyter-notebook/142317>\
**Category:** Elasticsearch\
**Created:** [July 31, 2018, 9:04am UTC](https://discuss.elastic.co/t/using-elasticsearch-with-jupyter-notebook/142317 "2018-07-31T09:04:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caroline](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@caroline](https://discuss.elastic.co/u/caroline)\
**Post date:** [July 31, 2018, 9:04am UTC](https://discuss.elastic.co/t/using-elasticsearch-with-jupyter-notebook/142317/1 "2018-07-31T09:04:52Z")

</div>

' m trying to use elasticsearch with jupyter notebook I have installed elasticsearch python client using `pip install elasticsearch` and I have included the elasticsearch spark connector jar on the classpath when launching my notebook but when I tested if elasticsearch instance is running I got

`No Module named elasticsearch`

here is the code that I used :

```
from elasticsearch import Elasticsearch 
es=Elasticsearch()
es.info(pretty=True)
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 28, 2018, 9:04am UTC](https://discuss.elastic.co/t/using-elasticsearch-with-jupyter-notebook/142317/2 "2018-08-28T09:04:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
