Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
wahmed20
Resolver I
Resolver I

Connecting computer code to notebook

There are some code which can work only in your computer. For example accessing elasticsearch using python client.

 

from elasticsearch import Elasticsearch
es = Elasticsearch(
    hosts=[{'host': 'ip', 'port': 9200}],
    http_auth=('name', 'username'),

)

 


Where the ip is the ip on which elasticsearch is running. This ip can run from my computer only. I want to run this code on the notebook of fabric. What setup I should do in this regrad?

1 ACCEPTED SOLUTION
wahmed20
Resolver I
Resolver I

The code works if you run the notebook with Vs code. 
For further details
https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension

View solution in original post

2 REPLIES 2
wahmed20
Resolver I
Resolver I

The code works if you run the notebook with Vs code. 
For further details
https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension

miguel
Community Admin
Community Admin

Hi!

This question appears to be better suited for the Synapse community which does cover notebooks. This community focuses primarily on the components found inside of the Data Factory which are, today, Data pipelines and Dataflows.

 

I'd encourage you to post this question on the Synapse community.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.