Code Monkey home page Code Monkey logo

Comments (2)

alope107 avatar alope107 commented on May 25, 2024

I propose that we merge the current two magics, %sparkconf and %%sparkmagic into a single magic %%spark. This magic supports all the same functionality of the other current magics through a very similar argument passing style.
If the user omits a required argument, they are prompted for it. In the notebook, this prompt takes the form of IPython widgets (a drop-down selection for language and client, text field for connection string etc). Entering %%spark without any arguments thus gives a simple GUI that allows the user to perform any remote spark task without needing to learn the command syntax.
On the command line, we can decide whether it makes more sense to have textual prompts to input the missing arguments or to display an error message.
These proposed changes are designed to make it as easy as possible for a user to interact with spark without having to remember any magic-specific syntax.
@aggFTW What do you think of this idea?

from sparkmagic.

aggFTW avatar aggFTW commented on May 25, 2024

I like it! I was also thinking of specifying a language for a specific endpoint. So, for adding an endpoint, you would provide url, username, password and language. That will allow us to handle languages differently, which is needed for our integration with automatic visualization.

I'll start the change to take a language for an endpoint now. We can then merge our changes.

Thanks @alope107!

from sparkmagic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.