in Education by
Visual Studio Code has option to connect to jupyter notebook. When it's done I can execute my script by clicking shift+enter (or other shortcut) then there is jupyter notebook execution result in python interactive, eg. if I use matplotlib plot I can show this plot inside python interactive. I try to find same solution (integration with jupyter notebook) to Visual Studio 2017, according to my example I want to show my matplotlib plot in Visual Studio 2017 python interactive windo (which is connected to jupyter notebook I suppose). Is it possible? Is it correct approach? I am not questioning how I can work with IPYNB file inside Visual Studio 2017, my question is rather how I can execute my python script as jupyter notebook execution? If I have python script like this import matplotlib.pyplot as plt import numpy as np def f(t): 'A damped exponential' s1 = np.cos(2 * np.pi * t) e1 = np.exp(-t) return s1 * e1 t1 = np.arange(0.0, 5.0, .2) l = plt.plot(t1, f(t1), 'ro') plt.setp(l, markersize=30) plt.setp(l, markerfacecolor='C0') plt.show() and execute this script in Visual Studio Code with shift + Enter I have my result plot in python interactive window. If I execute same script in Visual Studio 2017 with Debug->Execute File in Python Interactive then the result plot is outside python interactive window. Inside Visual Studio 2017 I use Anaconda 5.2.0 as Python Enviroment. How to resolve this problem? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Try '%matplotlib inline'. That's what we use in the VS Code extension to force plots to show up in the interactive window.

Related questions

0 votes
    I am using Visual Studio 2017 Community Edition (CE), and I have signed into my Microsoft account and I am ... to resolve this issue. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I am receiving the error "'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine" ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I'm trying to open up a PDF as an image using Wand. If I run the code below in Jupyter Notebook ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    Jupyter notebooks (Python) return the value of the last variable in a cell in a pretty printed format. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    I have recently quoted a Deep Learning VM from Google Cloud. DLVM provides a link to the jupyter notebook ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    I'm trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I'm ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    When compiling boost filesystem (1_46_1) with Intel 12 Release 4, and Visual Studio 10, I get this error ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because ... like SourceTree. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have a very serious problem with Visual Studio 2008. Occasionally when I right-click (for go to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I have a very serious problem with Visual Studio 2008. Occasionally when I right-click (for go to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I have a very serious problem with Visual Studio 2008. Occasionally when I right-click (for go to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I have a very serious problem with Visual Studio 2008. Occasionally when I right-click (for go to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    When I use Build->Publish Web Site in Visual Studio 2008, most of the time it compiles the site, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I am new to SAP HANA database. I have successfully hosted the SAP HANA express database on cloud server. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I have tried many solution online but I am unable to fix. First off all i check in bin and it ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
...