Saravanan666/pypi-org huggingface dataset:
Package: ipyscales
ipyscalesA Jupyter widgets library for scales.InstallationYou can install usingpip:pipinstallipyscalesIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:jupyternbextensionenable--py[--sys-prefix|--user|--system]ipyscalesAcknowledgementsipyscales is developed with financial support from:OpenDreamKit Horizon 2020 European Research Infrastructures project (#676541),https://opendreamkit.org
Package: ipyscore
ipyscoreA Jupyter widget for rendering music notationInstallationYou can installipyscoreusingpip:pipinstallipyscoreDevelopment InstallationCreate a development environment:micromambacreate-nipyscore
micromambaactivateipyscore
micromambainstall-cconda-forgepythonnodejs
pipinstalljupyterlab
npminstallInstall the Python package and build the TypeScript package.pipinstall-e.
node_modules/.bin/esbuild--bundle--format=esm--outdir=ipyscore/staticsrc/index.ts
Package: ipyscript
IPyScriptIPyWidgetshttps://ipyscript.datalayer.techfor PyScript.A Custom Jupyter Widget LibraryInstallationYou can install usingpip:pipinstallipyscriptIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:jupyternbextensionenable--py[--sys-prefix|--user|--system]ipyscriptDevelopment InstallationCreate a dev environment:condacreate-nipyscript-dev-cconda-forgenodejsyarnpythonjupyterlab
condaactivateipyscript-devInstall the python. This will also build the TS package.pipinstall-e".[test, examples]"When developing your extensions, you need to manually enable your extensions with the
notebook / lab frontend. For lab, this is done by the command:jupyter labextension develop --overwrite .
yarn run buildFor classic notebook, you need to run:jupyter nbextension install --sys-prefix --symlink --overwrite --py ipyscript
jupyter nbextension enable --sys-prefix --py ipyscriptNote that the--symlinkflag doesn't work on Windows, so you will here have to run
theinstallcommand every time that you rebuild your extension. For certain installations
you might also need another flag instead of--sys-prefix, but we won't cover the meaning
of those flags here.How to see your changesTypescript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different
terminals to watch for changes in the extension's source and automatically rebuild the widget.# Watch the source directory in one terminal, automatically rebuilding when neededyarnrunwatch# Run JupyterLab in another terminaljupyterlabAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.
Package: ipyselect2
ipyselect2Usagefromipyselect2importSelect2importipywidgetsaswidgetss1=Select2(options=['a','b'],width='200px')s2=Select2(options=['x','y'],width='200px',multiple='multiple',lazy=True)s2.layout.height='60px'defvalues_change(change):withoutput:print(change)s1.observe(values_change,'value')s2.observe(values_change,'values')output=widgets.Output()tab=widgets.Tab()tab.children=[s1,s2]deftab_change(x):ifx['new']:s2.lazy=Falsetab.observe(tab_change,'selected_index')tab.set_title(0,'single select')tab.set_title(1,'multiple select')display(tab,output)InstallationA jupyter widget usingselect2With pip:pipinstallipyselect2To make it work for Jupyter lab:jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install ipyselect2If you have notebook 5.2 or below, you also need to execute:jupyternbextensionenable--py--sys-prefixipyselect2For a development installation (requires npm),cd/optgitclonehttps://github.com/opentradesolutions/ipyselect2.gitcdipyselect2pipinstall-e.jupyternbextensioninstall--py--symlink--sys-prefixipyselect2jupyternbextensionenable--py--sys-prefixipyselect2jupyterlabextensionlinkjsFor Jupyter lab development, you may want to start Jupyter lab with
jupyter lab –watch so it instantly picks up changes.
Package: ipysheet
ipysheetWARNINGDue toHandsontable licensing changesipysheet is stuck witch the outdated Handsontable version 6.2.2 (open-source).
We recommend not using ipysheet anymore. We suggest an alternative likeipydatagrid.Spreadsheet in the Jupyter notebook:Try it out using binder:Or check out the documentation athttps://ipysheet.readthedocs.io/Create a table and drive a value using ipywidgets:Perform a calculation on slider change:Change cell style depending on the value using renderers:Populate table using cell ranges:InstallationWith conda:$ conda install -c conda-forge ipysheetWith pip:$ pip install ipysheetDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the ipysheet directory# Install package in development modepipinstall-e.# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmrunbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmrunwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm run buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstallipysheetIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedipysheetwithin that folder.
Package: ipysimulate
IPySimulate - Interactive simulations for PythonTools to create interactive simulations with IPython and Jupyter,
including a control panel, widgets to adjust parameters at runtime,
and dynamicD3.jsvisualizations.
This package is still in an early stage of development.
Contributions are welcome :)Documentation:https://ipysimulate.readthedocs.io/Application examples:https://agentpy.readthedocs.io/en/stable/guide_interactive.htmlInstallationTo install use pip:$ pip install ipysimulateFor a development installation (requiresNode.jsandYarn version 1):$ git clone https://github.com/JoelForamitti/ipysimulate.git
$ cd ipysimulate
$ pip install -e .
$ jupyter nbextension install --py --symlink --overwrite --sys-prefix ipysimulate
$ jupyter nbextension enable --py --sys-prefix ipysimulateWhen actively developing your extension for JupyterLab, run the command:$ jupyter labextension develop --overwrite ipysimulateThen you need to rebuild the JS when you make a code change:$ cd js
$ yarn run buildYou then need to refresh the JupyterLab page when your javascript changes.
Package: ipysketch
ipysketchA Python package for handwriting and sketching in Jupyter notebooks.InstallationFirst, install theipysketchpackage usingpip:pip install --upgrade ipysketchThen install and enable the widgets extension in Jupyter:jupyter nbextension install --user --py widgetsnbextension
jupyter nbextension enable --py widgetsnbextensionUsageimport ipysketchcreate aSketchinstance and give the sketch a namedisplay the instanceclick the edit button and make your sketchFor usage instructions, please refer to thegithub repository.
Package: ipyslack
Installation$ pip install ipyslackUsageLoad the extension:%load_ext ipyslackConfigure Slack API:%slack_setup -t <api_token> -c <target_channel>To obtain the API token visitthis page.
The<target_channel>parameter may either denote a channel (e.g.#general) or a user (e.g.@me).Adding the option-utrueto%slack_setupwill make yourself the sender of all messages. Otherwise (default) the messages originate fromslackbot.In order to avoid having to write the API token in every notebook, you can create a file containing the same configuration line:-t <api_token> -c <target_channel> -u falseYou can then load this configuration in the notebook by invoking:%slack_setup <filename>Even simpler, if you don’t call%slack_setupat all, the extension will try to auto-configure itself on first use
by searching for the files~/.ipyslack.cfgand.ipyslack.cfg(in this order) and
trying to load configuration from these.Later files in this search order override the settings of the previous ones. That is, you can specify-t<api_token>-c#default_groupin the global~/.ipyslack.cfg, and only override-c#project_groupin the local.ipyslack.cfg.Now adding:%%slack_notify <message>at the top of any cell will send<message>to<target_channel>whenever cell execution is completed.The patterns{out}and{err}within<message>will be substituted with stdout or stderr from the cell’s execution. The pattern{exc}denotes the exception (if any was thrown). The string\ndenotes a new line. Simiarly, any variable namedxin your workspace can be referred to as{x}(in fact, you can use the standard format string notation).Example:%%slack_notify *Completed {len(results)} trials. Last result: {results[-1]}!* :heavy_plus_sign:\nStdout: {out}\nStderr: {err}\nException: {exc}In addition, the line-magic%slack_send <message>lets you send notifications about partial results. E.g.:%%slack_notify Completed. Final accuracy: {accuracy}. {exc}
... computation ...
%slack_send Half-way! Current accuracy: {accuracy}
... computation ...See alsoIPyTelegram:https://github.com/kalaidin/ipytelegram/
Package: ipyslides
IPySlidesCreate interactive slides programatically inJupyter/Voilawith all kind of rich content.Launch Example NotebookSee aDemo NotebookatKaggleWatch aYoutube VideoSeePDF-SlidesChangelogYou can see upto date documentation viaipyslides.Slides().docs(), so no additional changelog is created.Install>pipinstallipyslides
>pipinstallipyslides[extra]For development install, clone this repository and then>cdipyslides
>pipinstall-e.How to UseIn Jupyter Notebook:importipyslidesasisdslides=isd.Slides()Creating SlidesPlease look at two presentations provided withSlides.docs(),Slides.demo()to see how slides are created. Moreover instruction in settings panel are at your finger tips.Content Types to EmbedYou can embed anything that you can include in Jupyter notebook like ipywidgets, HTML, PDF, Videos etc.,including jupyter notebook itself!IPython Display Objects, seeIPythonmodule.Plots and Other Data Types (matplotlib, plotly etc.)Jupyter Interactive Widgets (ipywidgets, bqplot ect.)Custom and Third Party Objects( which are not implemented in this library)You can display withdisplaycommand or library's specific display method.You can serialize custom objects to HTML usingSlides.serializerAPI.You can extend markdown syntax usingSlides.extenderAPI. See some good extensions to add fromPyMdown.PDF printingTo include all type of objects you need to make PDF manually.
Read instructions by clicking ℹ️ button in quick menu. SeePDF-SlidesIf you just have HTML objects likematplotolib plots,images,plotly,bokehcharts etc. and not something likeipywidgets, see next section.HTML/PDF SlidesUseslides.export_htmlto build static slides that you can print as well.Content variety for export is limited. Widgets can not be exported unless an alternative representation is given bySlides.alt(widget, func(widget)).Paper width for printing is 10 inch (254mm) and height is determined by aspect ratio of slides.UseSave as PDFin browser to make links work in ouput PDF.Speaker NotesYou can turn on speaker notes with aShow Notescheck in setting panel. See moduleSlides.notesfor details or see examples inSlides.demo().Notes is an experimantal feature, so use at your own risk. Avoid if you can.Known LimitationsSince Markdown is parsed using python (and we do not run notebook from outside e.g. with nbconvert), markdown cells are of no use. A better alternative is linking a markodwn file usingSlides.sync_with_fileand slides auto update when you save your edits. You can still write markdown in code cell with slide magic%%slide number -mto add to slides.Slide number is necessary to be tracked by user in notebook, because cells are not linked to each other and multiple runs of a cell can lead to adding many slides with same content. Inside python scripts that run in linear fashion, you can useSlides.AutoSlide().[title,slide,frames,from_markdown].Bounding box of slides for screenshots should be set by user (if not in fullscreen).AcknowledgementsSlides application is based onipywidgets.Rich display mechanism, and collection of cell output to slides heavily rely onIPython.Python-Markdownis extensily used for content and extended where needed.
Package: ipyslurm
ipyslurmPython interface toSlurm Workload Manager.Getting startedInstall usingpip install ipyslurmorconda install -c conda-forge ipyslurm.Seeexample notebooksfor different use cases.Magic commandsLine magics:sinteract,slogin,slogout,stailCell magics:scommand,sbatch,sftp,swritefileUse?to get help on individual commands.
Package: ipysnowball
ipysnowball===============quick start>>>importipysnowballasball>>>ball.set_token('xq_a_token=651af***************031c96a315c;')'xq_a_token=651af***************031c96a315c;'>>>ball.cash_flow('SH600000'){'data':{'quote_name':'浦发银行','currency_name':'人民币','org_type':2,'last_report_name':'2018三季报','currency':'CNY','list':[{'report_date':1514649600000,'report_name':'2017年报','ncf_from_oa':[-140673000000.0,0.26730141203064695],'ncf_from_ia':[37800000000.0,1.590486604702023],'ncf_from_fa':[4820000000.0,-0.9794317706599756]},{'report_date':1483113600000,'report_name':'2016年报','ncf_from_oa':[-191993000000.0,-1.5350677219775932],'ncf_from_ia':[-64015000000.0,0.8794943714468582],'ncf_from_fa':[234342000000.0,-0.042650194867269654]},{'report_date':1451491200000,'report_name':'2015年报','ncf_from_oa':[358820000000.0,0.8770859707676373],'ncf_from_ia':[-531220000000.0,-0.5512111080287921],'ncf_from_fa':[244782000000.0,2.357915963619902]},{'report_date':1419955200000,'report_name':'2014年报','ncf_from_oa':[191158000000.0,-0.3801741859756295],'ncf_from_ia':[-342455000000.0,-0.08702069578466226],'ncf_from_fa':[72897000000.0,4.966967784066173]},{'report_date':1388419200000,'report_name':'2013年报','ncf_from_oa':[308406000000.0,2.3313098144267537],'ncf_from_ia':[-315040000000.0,-1.2059925355889953],'ncf_from_fa':[-18376000000.0,-1.6123496284447998]}]},'error_code':0,'error_description':''}
Package: ipyspeck
ipyspeckipyspeck StatsLatest ReleasePyPI DownloadsSpeckSpeck is a molecule renderer with the goal of producing figures that are as attractive as they are practical. Express your molecule clearlyandwith style.ipypeckIpyspeck is a ipywidget wrapping speck to be used on a Jupyter notebook as a regular widget.UsageThe ipyspeck widget renders xyz molecules.importipyspeckH2O='''3Water moleculeO          0.00000        0.00000        0.11779H          0.00000        0.75545       -0.47116H          0.00000       -0.75545       -0.47116'''h2o=ipyspeck.speck.Speck(data=H2O)h2oIdeally it should be used as part of a container widget (such as Box, VBox, Grid, ...)importipywidgetsaswc=w.Box([h2o],layout=w.Layout(width="600px",height="400px"))cThe visualization parameters can be modified#Modify atoms sizeh2o.atomScale=0.3#change bonds sizeh2o.bondScale=0.3#highlight bordersh2o.outline=0To render molecules on different formats  openbabel can be used to translate them as xyzimportopenbabel
importrequestsurl="https://files.rcsb.org/ligands/view/CO2_ideal.sdf"r=requests.get(url)obConversion=openbabel.OBConversion()obConversion.SetInAndOutFormats("sdf","xyz")mol=openbabel.OBMol()obConversion.ReadString(mol,r.text)co2=obConversion.WriteString(mol)ipyspeck.speck.Speck(data=co2)InstallationTo install use pip:$ pip install ipyspeck
$ jupyter nbextension enable --py --sys-prefix ipyspeckTo install for jupyterlab$ jupyter labextension install ipyspeckFor a development installation (requires npm),$ git clone https://github.com//denphi//speck.git
$ cd speck/widget/ipyspeck
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipyspeck
$ jupyter nbextension enable --py --sys-prefix ipyspeck
$ jupyter labextension install jsWhen actively developing your extension, build Jupyter Lab with the command:$ jupyter lab --watchThis takes a minute or so to get started, but then automatically rebuilds JupyterLab when your javascript changes.Note on firstjupyter lab --watch, you may need to touch a file to get Jupyter Lab to open.Gallery
Package: ipytableview
ipytableviewTable view widgetInstallationYou can install usingpip:pipinstallipytableviewIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:jupyternbextensionenable--py[--sys-prefix|--user|--system]ipytableviewDevelopment InstallationCreate a dev environment:condacreate-nipytableview-dev-cconda-forgenodejsyarnpythonjupyterlab
condaactivateipytableview-devInstall the python. This will also build the TS package.pipinstall-e".[test, examples]"When developing your extensions, you need to manually enable your extensions with the
notebook / lab frontend. For lab, this is done by the command:jupyter labextension develop --overwrite .
yarn run buildFor classic notebook, you need to run:jupyter nbextension install --sys-prefix --symlink --overwrite --py ipytableview
jupyter nbextension enable --sys-prefix --py ipytableviewNote that the--symlinkflag doesn't work on Windows, so you will here have to run
theinstallcommand every time that you rebuild your extension. For certain installations
you might also need another flag instead of--sys-prefix, but we won't cover the meaning
of those flags here.How to see your changesTypescript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different
terminals to watch for changes in the extension's source and automatically rebuild the widget.# Watch the source directory in one terminal, automatically rebuilding when neededyarnrunwatch# Run JupyterLab in another terminaljupyterlabAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.
Package: ipytablewidgets
ipytablewidgetsNB:End to end tests useGalataframework.Traitlets and widgets to efficiently data tables (e.g. Pandas DataFrame) using the jupyter notebookipytablewidgets is a set of widgets and traitlets to reuse of large tables such as Pandas DataFrames
across different widgets, and different packages.InstallationUsing pip:pipinstallipytablewidgetsDevelopment installationThe first step requires the following three commands to be run (requires yarn and jupyterlab>=3):$gitclonehttps://github.com/progressivis/ipytablewidgets.git
$cdipytablewidgets
$pipinstall-e.The development of extensions forjupyter notebookandjupyter labrequiresJavaScriptcode to be modified in-place. For this reason,labandnotebookextensions need to be configured this way:Forjupyter notebook:$jupyternbextensioninstall--py--overwrite--symlink--sys-prefixipytablewidgets
$jupyternbextensionenable--py--sys-prefixipytablewidgetsForjupyter lab:$jupyterlabextensiondevelop.--overwriteTablesThe main widget for tables is theTableWidgetclass. It has a main trait: A
table. This table's main purpose is simply to be a standardized way of transmitting table
data from the kernel to the frontend, and to allow the data to be reused across
any number of other widgets, but with only a single sync across the network.importpandasaspdfromipytableidgetsimportTableWidget,PandasAdapter,serialization@widgets.registerclassMyWidget(DOMWidget):"""My widget needing a table"""_view_name=Unicode('MyWidgetView').tag(sync=True)_model_name=Unicode('MyWidgetModel').tag(sync=True)...data=Instance(TableWidget).tag(sync=True,**serialization)def__init__(self,wg,**kwargs):self.data=wgsuper().__init__(**kwargs)df=pd.DataFrame({'a':[1,2],'b':[3.5,4.5],'c':['foo','bar'])table_widget=TableWidget(PandasAdapter(df))my_widget=MyWidget(table_widget)You can seeEchoTableWidgetwhich is a more realistic example, currently used for end to end testing anddemo.Or, if you prefer to use theTableTypetraitlet directly:fromipytablewidgetsimportserialization,TableType@widgets.registerclassMyWidget(DOMWidget):"""My widget needing a table"""...data=TableType(None).tag(sync=True,**serialization)DevelopersDevelopers should consider using ipytablewidgets because:It gives readily accessible syncing of table data using the binary transfer
protocol of ipywidgets.It gives compression methods speifically suited for columnar data.It avoids duplication of common code among different extensions, ensuring
that bugs discovered for one extension gets fixed in all.OverviewThe major parts of ipyablewidgets are:Traits/Widgets definitionsAdapters to convert tables to those traitsSerializers/deserializers to send the data across the networkApropriate javascript handling and representation of the data
Package: ipytextual
ipytextualJupyter Textual-based WidgetInstallationYou can installipytextualusingpip:pipinstallipytextualDevelopment InstallationCreate a development environment:micromambacreate-nipytextual
micromambaactivateipytextual
micromambainstall-cconda-forgepythonnodejs
pipinstalljupyterlab
npminstallInstall the Python package and build the TypeScript package.pipinstall-e.
node_modules/.bin/esbuild--bundle--format=esm--outdir=ipytextual/staticsrc/index.ts
Package: ipython
IPython provides a rich toolkit to help you make the most out of using Python
interactively.  Its main components are:A powerful interactive Python shellAJupyterkernel to work with Python code in Jupyter
notebooks and other interactive frontends.The enhanced interactive Python shells have the following main features:Comprehensive object introspection.Input history, persistent across sessions.Caching of output results during a session with automatically generated
references.Extensible tab completion, with support by default for completion of python
variables and keywords, filenames and function keywords.Extensible system of ‘magic’ commands for controlling the environment and
performing many tasks related either to IPython or the operating system.A rich configuration system with easy switching between different setups
(simpler than changing $PYTHONSTARTUP environment variables every time).Session logging and reloading.Extensible syntax processing for special purpose situations.Access to the system shell with user-extensible alias system.Easily embeddable in other Python programs and GUIs.Integrated access to the pdb debugger and the Python profiler.The latest development version is always available from IPython’sGitHub
site.
Package: ipython2cwl
IPython2CWLIPython2CWL is a tool for convertingIPythonJupyter Notebooks toCWL (Common Workflow Language)Command Line Tools by simply providing typing annotation.fromipython2cwl.iotypesimportCWLFilePathInput,CWLFilePathOutputimportcsvinput_filename:'CWLFilePathInput'='data.csv'withopen(input_filename)asf:csv_reader=csv.reader(f)data=[lineforlineincsv_reader]number_of_lines=len(data)result_file:'CWLFilePathOutput'='number_of_lines.txt'withopen(result_file,'w')asf:f.write(str(number_of_lines))IPython2CWL is based onrepo2docker, the same tool
used bymybinder. Now, by writing Jupyter Notebook and publishing them, including repo2docker
configuration, the community can not only execute the notebooks remotely but also to use them as steps in scientific
workflows.Installpip install ipython2cwlExamplejupyter repo2cwl https://github.com/giannisdoukas/cwl-annotated-jupyter-notebook.git -o .Docshttps://ipython2cwl.readthedocs.io/Demohttps://github.com/giannisdoukas/ipython2cwl-demo