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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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!