These are chat archives for spyder-ide/public

17th
Nov 2018
VAMAN ACHARYA
@VAMANACHARYA
Nov 17 2018 05:47
Similar to Jupyter notebok, whether spyder is available in Browser mode?
CAM Gerlach
@CAM-Gerlach
Nov 17 2018 05:48
@VAMANACHARYA Please describe what you mean by "Browser mode"? We have built in file browser capable of various operations, as well as a project explorer that serves a similar function for projects specifically, and our upcoming Spyder 4 release has a function/class/method browser.
VAMAN ACHARYA
@VAMANACHARYA
Nov 17 2018 05:52
@CAM-Gerlach I can execute files in Jupyter Notebook (http://jupyter.org/try) without installing it to my machine..
similarly is this feature available for Spyder?
CAM Gerlach
@CAM-Gerlach
Nov 17 2018 05:52
If you mean is Spyder available as a web app, then no, it is a full featured, native desktop application like any other true IDE. However, you can connect to other kernels both locally and remotely (over SSH) from right within the interface and with full functionality with just one modular package with minimal dependencies, replicating much of a browser-based development environment's main advantage (ease of installing, running and connecting to servers and clients on different machines and environments), while avoiding its numerous significant downsides of a limited and non-native UI, lower performance, very limited functionality, etc.
CAM Gerlach
@CAM-Gerlach
Nov 17 2018 06:02

I can execute files in Jupyter Notebook (http://jupyter.org/try) without installing it to my machine..

Jupyter and Spyder are very different platforms that complement each other, but serve different purposes. Jupyter is a notebook; therefore it makes sense to be able to interact with them remotely as this is its primary purpose and "selling point", to be able to easily share data, analysis and visualizations in an informal and interactive manner. Spyder is a full-featured IDE, like Pycharm, Rstudio or MATLAB, for both interactive exploration, developing analysis scripts, visualizing data, creating proper packages on which to build truly reproducible research, and doing most of the other tasks that fall under the label of scientific programming, software engineering and data analysis other than writing interactive reports, and thus its functionality cannot, like any other IDE, be properly replicated in a web browser alone, at least not without substantial compromises. However, we do have plugins to interact with and edit Jupyter notebooks from within Spyder as well as create dynamically driven reports, our consoles are built on the same IPython shell and on Jupyter QtConsole, and we offer inline and (in Spyder 4) a dedicated plugin for data visualization with Matplotlib/Pyplot.

KristianRams
@KristianRams
Nov 17 2018 06:13
Hello, I have a quick question if anyone could answer that would be great. Spyder uses the ipython console, but it has inline plotting. However, inline is no longer an available backend for the ipython console. How does spyder achieve this? The reason for this question is that I am trying to replicate ipython console notably inline plotting through emacs. I have already succeed in running jupyter console in emacs however jupyter console doesn't support inline plotting. Thanks.
CAM Gerlach
@CAM-Gerlach
Nov 17 2018 06:14
@VAMANACHARYA TO To put this in perspective, its a lot like a presentation program vs. a spreadsheet program in an office suite (MS Office, Google Apps, LibreOffice, etc). The presentation program is great for producing flashy, interactive slideshows to share with your boss or clients and has passable visualization capabilities in a pinch, but you'd want to do your day to day work in the spreadsheet program, because it has far more features and functionality for calculation, analysis and visualization, spreadsheets are modular and can readily be adapted to dynamically process new data , interact with other platforms and serve as an integrated piece in a larger ecosystem, and are ultimately designed for a different purpose—generating insights, not just sharing them. Furthermore, the spreadsheet program can share its results in readily interoperable, standard formats (CSVs, etc) and can easily output its plots and tables to the presentation program, while the opposite is not really true.
@KristianRams @ccordoba12 would likely have a better answer for you, but the new features in Jupyter QtConsole 4.4 (what Spyder uses as the GUI frontend for its IPython consoles) might be just what you are looking for. You can easily integrate QtConsole (which has inline plotting support) with an external editor like Emacs, with input and output automatically sent between the two and beautifully printed with customizable syntax highlighting in QtConsole, to build your own custom IDE.
CAM Gerlach
@CAM-Gerlach
Nov 17 2018 06:20
You can read a few paragraphs down for a summary and a video demonstration using Vim as an example, and read the blog post about the feature by the author of the change.
Carlos Cordoba
@ccordoba12
Nov 17 2018 06:21

However, inline is no longer an available backend for the ipython console

@KristianRams, I don't understand this. When does that happen?

VAMAN ACHARYA
@VAMANACHARYA
Nov 17 2018 06:23
Thank you for the information @CAM-Gerlach .
KristianRams
@KristianRams
Nov 17 2018 06:28
@ccordoba12 Hello. Yes I was under the impression that inline did not work for ipython console. I got the following error when I tired inline plotting: UnknownBackend: No event loop integration for 'inline'. Supported event loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx
Inline isn't listed as a valid backend.
Carlos Cordoba
@ccordoba12
Nov 17 2018 06:32
What we (in Spyder) call IPython console, is not the terminal version of IPython, it's really QtConsole embedded in Spyder
KristianRams
@KristianRams
Nov 17 2018 06:49
Would you have any references for Jupyter QtConsole integration with emacs? Thank you.
Carlos Cordoba
@ccordoba12
Nov 17 2018 07:12
The ones provided by @CAM-Gerlach above
They are not specific to Emacs though
CAM Gerlach
@CAM-Gerlach
Nov 17 2018 07:22
@KristianRams The APIs specified should work for Emacs equally as well as Vim, I'd imagine. But if you have detailed questions, I'm sure Marjin would be happy to answer (FYI I linked Marjin's blog post incorrectly above, the previous is the correct link).