formating of databricks notebook titles like header,point - databricks

How to make the notebook cmd title has format like in the picture ?

You can use markdown for this:
%md
###The next command...
1. Select color...
2. Displays a table...
See also the Databricks documentation.

Related

Databricks link to cells using markdown

From Databricks documentation, I understand that we can link to other notebooks from a notebook as below:
%md
Link to notebook in same folder as current notebook
Link to folder in parent folder of current notebook
Link to nested notebook
How can I link to a cell in the same notebook?
When in cell, note the URL - it has the form like:
https://<url>/?o=147804121238830#notebook/128991821126784/command/252704521328130
^^^^^^^^^^^^^^^
this is cell id
When you change the cell that id will change correspondingly. So you can link to a cell using this. Just note that this is not an anchor - when it opens, it will do so in new tab.

Add syntax highlighing to nbconvert raw cells in Jupyter

In Jupyter, I'd like to add syntax highlighting to Raw NBConvert cells (based on type). I'm looking for either (a) an existing plugin that accomplishes this or (b) some direction on writing a plugin to accomplish this.

Copy command Not working in DevCenter

I have DevCenter 1.2.1.Some CQL commands working well but COPY command is not working.It shows error message "You made a type...sorry typo".Any hint???
The copy command, as well as some other commands are unique to cqlsh only and not part of the CQL spec proper, so they cannot be used in DevCenter.
Source: https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/JQXF99YAB_E (what applies to drivers also applies to DevCenter)
While DevCenter does not support cqlsh specific commands such as COPY, it does allow you to copy results of a query from the Results view in either a CSV or INSERT statement format.
For CSV, execute your query and select the rows you want to copy in the Results view, then right-click and select "COPY as CSV". You can also select "COPY All as CSV" as a shortcut if you want all rows from the result set. This will copy all the result data to the clipboard and the format of this data should be compatible with cqlsh COPY. You can paste this data into a file to get a result similar to COPY TO in cqlsh.
You cannot directly achieve the same thing as cqlsh COPY FROM in DevCenter, however the "Copy [All] as INSERT" option provides the ability to generate INSERT statements from a given query result set to the clipboard which can then be pasted back into the editor and executed again. For small data sets, this method can be a convenient to create a script to load data for testing or backup.

How can I export SPSS custom tables to a specific Excel sheet without the SPSS code?

I want to control the sheet into which the custom table output is saved, so apparently I cannot use OMS under SPSS 19 basic. I have been using OUTPUT EXPORT, but even when I close the output before the CTABLES comment, it includes the text of that comment. I do not want to include the CTABLE command, just the table that is produced.
Any ideas how to do that?
Thanks!
Martin
The easiest way to do this with OMS is to select and suppress everything except the tables you want:
oms select all /exceptif subtypes="customtable" /destination viewer=no.

PostgreSQL: Copy/paste resulting with headers into Excel without code

I used MS SQL Server 2008 R2 (MS SQL) where I could right click the query result, copy/paste it with headers to Excel for easy exploration. Now with PG Admin (PostgreSQL) I have to do export (File > Export > CSV) then bunch of Excel steps (Text To Columns).
Is there an easy way to copy/paste the query result with headers into Excel?
For pgAdmin 4, there is an option to "Copy with headers". It is a drop-down beside the copy button in the Query Tool menu:
PgAdmin seems to make semi colon the default field separator. Excel seems to like tabs by default.
You could try and change excel or each time just do the "text to columns" feature.
I personally would go to Preferences->Query tool->Results grid and change the following
Result copy quote character: "
Result copy field separator: Tab
Copy column names: True
This will make it more behave more like sql management studio.
There's a lot of different ways to accomplish what you want here. The question is a bit confusing because you are talking about Excel, but then you table about '/var/lib/postgres/myfile1.csv', which makes me think you are now using some favor of Linux.
I'm using Ubuntu 12.04 with pgAdminIII 1.16.0. And I have Open Office installed with LibreOffice 3.5.4.2 as the Excel replacement.
I'm not sure why you want to take the information out of the grid in pgAdminIII, but assuming just wanting to take the data and move it over to a spreadsheet to play it for some reason, then about the easiest way to do it is run your query and click the upper left corner of the results (which just like a spreadsheet selects everything) and copy. Then, you should be able to open LibreOffice and paste in the information. It will bring up the same dialog as you would see when importing a CSV file.
Also, you should be able to start psql and then do a "COPY" command. If you get a permissions error, then try the suggested "\COPY" instead. Please see the PostgreSQL docs. Here is a link to a wiki page here.
If I'm missing what you are trying to do, please ask questions in the comments section, and I'll try to improve my answer accordingly.
You have to set your query tool output to text not the grid data. That way the Column names and the query results are all in the same cut past text file. When you do this you are no longer doing CSV. The whole results and field names comes over as a text file in the cut and paste process.
Answering to quite an old post:
The answer by #Phillip Fleischer seems to be the best way, at least in pgAdmin III. But for pgAdmin III version 1.22.2 (the one I am using), instead of Preferences..., the settings mentioned were seen under File > Options > Query tool > Results grid.

Resources