In this , I will show you the further steps to install the first public release of the Jupyter visual debugger!, and handling 3 examples
This is just the first release, but we can already set breakpoints in notebook cells and source files, inspect variables, navigate the call stack and more.
$ jupyter labextension install @jupyterlab/debugger Xeus is a C++ implementation of the Jupyter kernel protocol. It is not a kernel by itself but a library that helps kernel authoring.
Xeus is very helpful when developing a kernel for a language that has a C or a C++API (Python, Lua, SQL, etc.).
It takes the cumbersome task of implementing the Jupyter messaging protocol for you so you just can focus on the core interpreter tasks: executing code, inspecting, completing, etc.
$ conda install xeus-python notebook -c conda-forge$ pip install xeus-python notebookNote: the wheels uploaded on PyPI are experimental.
## Function example result=0; # This is global variable.# Function definition is heredefmulti( arg1, arg2 ):
# multiply both the parameters and return them."result=arg1*arg2; # Here total is local variable.print ("Inside the function local result : ", result)
returnresult;
# Now you can call multiplication functionmulti( 10, 20 );
print ("Outside the function global result : ", result )# dataframe example # DataFrame using arrays. importpandasaspd# initialise data of lists. data= {'Name':['Imrane', 'Philippe', 'Mohammed', 'Abdelbarre'], 'marks':[99, 98, 95, 90]} # Creates pandas DataFrame. df=pd.DataFrame(data, index=['rank1', 'rank2', 'rank3', 'rank4']) # print the data df## Example of completion importpandasaspndimportnumpyasnp### Function multi(3,25)With WebRTC, you can add real-time communication capabilities to your application that works on top of an open standard. It supports video, voice, and generic data to be sent between peers, allowing developers to build powerful voice- and video-communication solutions.
$ pip install ipywebrtcfromipywebrtcimportVideoStream# commented out since it increases the size of the notebook a lot, you can connect this part with you azure/aws /google storage accountvideo=VideoStream.from_file('./data/mars_nasa.mp4')
videofromipywebrtcimportCameraStream, ImageRecordercamera=CameraStream(constraints=
{'facing_mode': 'user',
'audio': False,
'video': { 'width': 700, 'height': 350 } ## You can change the width and height
})
camera



