#Python – The best way to explain how jupyter notebooks works with Visual Studio Code @Code

Hi !

So, after my yesterday post [Edit and work with Jupyter notebooks in Visual Studio Code], today some people asked me how the Jupyter Notebooks and Python integration works.

The best way to explain this is with a simple animated video with the following actions

  • Create a cell using the prefix # %%
  • Run the cell and display the output in Python Interactive
  • Create a new cell
  • Run the new cell and the previous one
  • Analyze output in Python Interactive

I think this 15 seconds are good enough to understand the benefits of Jupyter Notebooks and Visual Studio Code.

Happy Coding!

Greetings @ NY

El Bruno

References

Advertisements

#VSCode – Edit and work with #jupyter notebooks in Visual Studio Code

Hi !

I’ve been using Python and Jupyter notebooks more and more. And somehow, during this learning path I also realize that I can use Visual Studio Code to code amazing Python apps, and also to edit and work with Jupyter notebooks.

If you are VSCode python developer, you may know some of the features available in the tool. I won’t describe them, because you may find the official documentation very useful (see below links or references).

The Python extension provides many features for editing Python source code in Visual Studio Code:

However, during the part months I’ve also working a lot using Jupyter notebooks, and I was very happy when I realize that VSCode also have some cool features to work with notebooks. The core of the notebooks are cells, and we can use them with the prefix #%%.

This is how it looks inside the IDE, running a cell in the code

Another interesting feature is to run notebooks in a remote Jupyter server, maybe using Azure Notebooks. I haven’t tried this one, and it’s on my ToDo list for the near future.

On top of adding cells features into standard python [.py] files, we can also edit standard Jupyter files. I’ve installed jupyter into one of my anaconda local environments, and now I can edit files inside VSCode.

First, I’ll be prompted to import the file as a standard python file

And, done! Now I got my Jupiter notebook inside VSCode

The final step will be to export my file or debug session, and for this we have the command [Python: Export …]

Super useful!

Happy coding!

Greetings @ NY

El Bruno

References

#VSCode – Visual Studio Code Tools for #AI available at Visual Studio Marketplace @code

Hi!

Happy Thanksgiving! Today is one of those new holidays that I need to learn, now that we are all living in the North. Just as I have to get used to spending more and more time in Visual Studio Code. It’s just because for simple tasks in Python, the experience with this IDE is great.

Well, a few days ago I realized that we also have [Visual Studio Tools for AI] in a specific version for VSCode.

Visual Studio MarketPlace: Visual Studio Code Tools for AI

As always, installation is a very simple process

01 vscode tools for ai install02 vscode tools for ai installed

Once the extension is installed, you may want to spend some time to review that all requirements of the development environment are correctly installed. Mostly focus on drivers and Paths, IMHO they can give you some very not happy times.

This is why it’s worthwhile to spend some time following this links

From here I think I will encourage my first real steps with Deep Learning!

Happy coding!

Greetings @ Burlington

El Bruno

References

Quickstarts

 

#VSCode – Visual Studio Code Tools for #AI disponible en el Visual Studio Marketplace @code

Buenas!

Feliz día de acción de gracias! Hoy es uno de esos festivos nuevos a los que tengo que acostumbrarme en el Norte. Así como tengo que acostumbrarme a pasar bastante tiempo en VSCode. Es solo porque para tareas simples en Python, la experiencia con este IDE es genial.

Pues bien, hoy me he enterado de que [Visual Studio Tools for AI] también tiene su version para VSCode.

Visual Studio MarketPlace: Visual Studio Code Tools for AI

Como siempre la instalación es un proceso muy simple

01 vscode tools for ai install02 vscode tools for ai installed

Una vez instalada la extensión, es conveniente repasar que todos los requerimientos del entorno de desarrollo estén instalados y bien configurados (drivers y paths pueden darte mas de un dolor de cabeza). Es por esto que dedicar un par de minutos a los siguientes links vale la pena

A partir de aquí creo que me animare con mis primeros pasos reales en Deep Learning!

Happy coding!

Saludos @ Burlington

El Bruno

References

Quickstarts

 

#Quantum – The key for Mac and Linux is on Visual Studio Code #VSCode

Hi!

Yesterday I wrote that one of the most important news of the last Update of the Microsoft Quantum Development Kit was the support for Mac and Linux. Well, this is achieved because the basis of Q# is the interaction of a host in .Net Core 2.0 and the connection to the Quantum Simulator.
This allows us to work with Microsoft Quantum DevKit using any language that supports .Net. Where C # and F # may be the most popular. And it is on this basis that we can also use Microsoft Quantum DevKit in other platforms, using Visual Studio Code as a development tool

.

I1

From Visual Studio Marketplace we can download an extension for VSCode that allows us to create projects in Microsoft Quantum DevKit. As expected we can also debug, write our Q # code and more with VSCode.

The installation is very simple. We start installing the extension for VSCode

I2

A couple of PowerShell commands

I3

And that’s it! now it’s time to program some Qubits 😀

Happy QCoding!

Saludos @ Toronto

El Bruno

References

My Posts

 

#Quantum – La clave está en Visual Studio Code #VSCode

Buenas!

Ayer comente que una de las novedades más importantes del ultimo Update de Microsoft Quantum Development Kit era el soporte para Mac y Linux. Pues bien, esto se logra ya que la base de Q# es la interacción de un host en .Net Core 2.0 y la conexión con el Quantum Simulator. Esto nos permite trabajar con Microsoft Quantum DevKit utilizando cualquier lenguaje que soporte .Net. Donde C# y F# tal vez sean los más populares.

Y es sobre esta base que también podremos utilizar Microsoft Quantum DevKit en otras plataformas, utilizando Visual Studio Code como herramienta de desarrollo.

I1

Desde Visual Studio Marketplace podemos descargar una extensión para VSCode que nos permite crear proyectos en Microsoft Quantum DevKit. Como es de esperar también podemos depurar, escribir nuestro código Q# y más con VSCode.

La instalación es muy simple. Comenzamos instalando la extensión para VSCode

I2

Y luego un par de comandos en PowerShell

I3

Listo, ya es momento de comenzar a programar nuestros qubits!

Happy QCoding!

Saludos @ Toronto

El Bruno

References

My Posts

 

#VisualStudio – Visual Studio for Mac, a new family member (Bonus: Linux Foundation!)

Hello!

Do you remember when Visual Studio was all you needed to create applications? It still the single tool you need. However now, you have several flavors to choose to depend on the application type, and your development style. Today at Microsoft Connect they confirmed the launch of Visual Studio for Mac.

However, it seems that behind this Visual Studio there is an old friend: Xamarin Studio (remember that Microsoft acquired Xamarin some time ago, link, this step was the natural one). IMHO, I I shall refuse to name it as “Visual Studio for…” until has support TFS integration.

And now, you can read the current status of the Visual Studio family and also a short description of each product in the notes below. But before, I think is good to share a couple of clarifications, because I have already read some posts where you begin to talk about issues without having clear some concepts:

  • It is true that now on Mac there are 2 options: Visual Studio and Visual Studio Code for Mac. However one is an IDE and the other one is a code editor.
  • Visual Studio Code as a code editor, and is he has matured much since the V1. However, I think that still can be clearly the distinction between IDE and Code Editor.
  • The same imitation of Mac could be done on Windows, where we have Visual Studio Code and Visual Studio 2017 RC (or release Visual Studio 2015)

Visual Studio Family

Clipboard04.png

 

Visual Studio 2017 RC focuses on improved productivity, refined fundamentals (performance improvements across all areas in VS 2017), streamlined cloud development, and great mobile development. To learn more, read the details in John Montgomery’s post announcing Visual Studio 2017 RC. The download is available here.

Visual Studio for Mac is a new Visual Studio IDE. It’s built from the ground up for the Mac and focuses on full-stack, client-to-cloud native mobile development, using Xamarin for Visual Studio, ASP.Net Core, and Azure. To learn more, read Miguel de Icaza’s blog post introducing Visual Studio for Mac. The download is available from here.

Visual Studio Mobile Center is “mission control for mobile apps.” It brings together multiple services commonly used by mobile developers into a single, integrated service that allows you to build, test, deploy, and monitor cloud attached apps in one place. To learn more, please read Nat Friedman’s blog post elaborating on Visual Studio Mobile Center.

Team Foundation Server 2017 RTM and Visual Studio Team Services is bringing general availability to Application Insights, Package Management service, Code Search, and 3rd party commerce to on-premises extensions. To learn more, please read Brian Harry’s blog post. Get started here.

Bonus and shock :

Microsoft joins the Linux Foundation

Greetings @ Toronto

El Bruno

References

#VisualStudio – Visual Studio for Mac, uno más para la familia (Bonus: Linux Foundation!)

Hola !

¿Recuerdas cuándo Visual Studio era lo único que necesitabas para crear aplicaciones? Pues sigue siendo lo único que necesitas salvo que ahora dependiendo del tipo de aplicación, tienes varios sabores del mismo. Hace 2 días se había filtrado la noticia de una versión de Visual Studio para Mac, hoy en Connect la confirmaron.

Sin embargo, parece que detrás de este Visual Studio hay un viejo conocido: Xamarin Studio (recuerda que Microsoft adquirió a Xamarin hace un tiempo, link, este paso era natural). Yo me negaré a nombrarlo como “Visual Studio for …” hasta que no tenga integración con TFS.

Y ahora bien, debajo dejo el estado actual de la familia de Visual Studio y además una pequeña descripción de cada producto. Pero antes un par de aclaraciones importantes, porque ya he leído algunos posts donde se comienza a hablar de temas sin tener claro algunos conceptos.

  • Es cierto que ahora en Mac hay 2 opciones: Visual Studio Code y Visual Studio for Mac. Sin embargo uno es un IDE y el otro un editor de código.
  • Visual Studio Code nace como un editor de código, y es cierto que ha madurado mucho como herramienta. Sin embargo creo que todavía puede hacerse claramente la distinción entre IDE y Editor de Código.
  • El mismo simil de Mac podría hacerse en Windows, donde tenemos Visual Studio Code y Visual Studio 2017 RC (o en release Visual Studio 2015)

 

Visual Studio Family

Clipboard04.png

 

Visual Studio 2017 RC focuses on improved productivity, refined fundamentals (performance improvements across all areas in VS 2017), streamlined cloud development, and great mobile development. To learn more, read the details in John Montgomery’s post announcing Visual Studio 2017 RC. The download is available here.

Visual Studio for Mac is a new Visual Studio IDE. It’s built from the ground up for the Mac and focuses on full-stack, client-to-cloud native mobile development, using Xamarin for Visual Studio, ASP.Net Core, and Azure. To learn more, read Miguel de Icaza’s blog post introducing Visual Studio for Mac. The download is available from here.

Visual Studio Mobile Center is “mission control for mobile apps.” It brings together multiple services commonly used by mobile developers into a single, integrated service that allows you to build, test, deploy, and monitor cloud attached apps in one place. To learn more, please read Nat Friedman’s blog post elaborating on Visual Studio Mobile Center.

Team Foundation Server 2017 RTM and Visual Studio Team Services is bringing general availability to Application Insights, Package Management service, Code Search, and 3rd party commerce to on-premises extensions. To learn more, please read Brian Harry’s blog post. Get started here.

Y por cierto, menudo anuncio:

Microsoft joins the Linux Foundation

Saludos @ Toronto

El Bruno

References

#VisualStudio – Lanzamiento oficial de Visual Code 1.0 !

Clipboard01

Hola !

Este último año ha sido intenso para el equipo de producto de Visual Studio Code. Hace unos días anunciaron una noticia muy importante: el lanzamiento de Visual Studio Code 1.0. Esta es la primer versión oficial del producto.

En la sección de referencias, en la noticia oficial es posible leer un gran post al respecto con mucha información sobre la historia del producto, datos como los más de 500000 usuarios que están usando el producto y mucho más. Yo tengo que ser honesto, y congfesar que no lo he usado como herramienta de desarrollo, he descargado y probado el IDE pero poco más.

Lo que sí he hecho, es estar al tanto de las novedades del mismo y puedo asegurar que en los últimos meses, el equipo de Microsoft se ha asegurado de tener en cuenta todas las sugerencias que se comentaban en los grupos de desarrolladores que usaban Visual Studio Code. Es por eso que ahora tenemos una versión muy estable y que además de soportar las capacidades con las que se lanzó: programación en JavaScript y TypeScript, tiene un gran modelo de extensibilidad. Hasta el día de la fecha hay más de 1000 extensiones solo para VSCode que además de mejorar los lenguajes que comenté antes, permiten programar también en Go, Phyton, C++ y otros lenguajes. Todo esto en un IDE GRATIS, que es algo que también es importante!

Y finalmente me queda dejar un par de datos, sobre los aportes de la comunidad. Más de 300 Pull requests y mucha gente en GitHub están ayudando a que Visual Studio Code sea un producto a tener en cuenta Winking smile

Clipboard01

Asi que, Felicitaciones al equipo de producto ! y veremos como se desarrolla y sigue creciendo el IDE en los próximos años !

Saludos @ Toronto

-El Bruno

References

#VisualStudio – Visual Code 1.0 Released !

Clipboard01

Hi !

It’s been a busy year for the Visual Studio Code team, and a few days ago they reach one great milestone: Visual Studio Code 1.0. The first official release of the product.

In the official news release you can find some insights about the history of the product, the more than 500000 users whoa rea using the product and more cool information. I need to be honest here and share my own experience: basic level. I’ve only downloaded the product and play around a little.

However I’ve tracked the evolution of the product, and I can assure that in the past 6 months, the product team was listening a lot the users feedback and they add this feedback into the product. The product now is very stable, and the extension model is great. There are more than 1000 extensions only for the VSCode which makes de IDE a very powerful platform. JavaScript, TypeScript, Go, Phyton, C++ and other languages are now supported in a free IDE, which is also great!

And, I need to also mention that the community is also making some great contributions to the product. 300+ pull requests are a great sample on this Winking smile

Clipboard01

So , congratulations for the product team and let’s see how this product continues evolving during the next years!

Greetings @ Toronto

-El Bruno

References